vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.85k stars 551 forks source link

The CSS VAR is invalid after npm run build #287

Closed zhousg closed 3 years ago

zhousg commented 3 years ago

<style scoped lang='less' vars={bg,width,height}> .xtx-skeleton { display: inline-block; position: relative; width: var(--width); height: var(--height); overflow: hidden; vertical-align: middle;

npm run serve image

npm run build image

问题:变量名有作用域标识,但是使用的时候却没有 Problem: the variable name has a scope identifier, but it is not used

posva commented 3 years ago

Remember to use the forum or the Discord chat to ask questions!