-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
添加vue/cli4 sass-loader v9全局注入变量教程 #5656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没这么麻烦,只要把 prependData
改个名改成 additionalData
就行了。
大佬可能需要排除对要注入文件的注入,新版不允许重复注入比如原来是a.scss是公共变量文件,直接写的话a.sass头部会注入一次啊a.sass的内容,会报重复,所以要写排除,看下这个项目 你就明白了,你可以把你的想法写在这个项目的vue.config.js上试试,当然也可能是我没找到更好的办法,大佬 有时间可以看一下,希望大佬相信我一次,动手试一下,希望跟您学习 |
请看下这个链接,我还是坚持我的想法,因为我试过直接改不可行 |
另外麻烦把 base branch 改成 master,网站上的文档都是从 master 分支部署的。 |
请看下这个链接,我还是坚持我的想法,因为我试过直接改不可行
改好啦 大佬 |
我又重新推送了一次 总算搞清楚该怎么推送了 大佬见笑了 |
还是有点小问题,你这里把 dev 分支的新提交都带过来了…… |
|
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
Other information: