-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(scss): support global scss inject #2725
Conversation
碉堡了! |
projectDirectory 这是什么地址干嘛的,要填什么 |
projectDirectory: 项目根目录的绝对地址(若为小程序云开发模板,则应该是client目录)。 |
新建工程,1.3.0-beta中配置,不能使用🙅♂️ |
2 similar comments
新建工程,1.3.0-beta中配置,不能使用🙅♂️ |
新建工程,1.3.0-beta中配置,不能使用🙅♂️ |
@o-x-o ...
plugins: {
sass: {...},
babel: {...}
},
... |
请问下,我给每个文件都自动引入了全局变量,怎么设置让某一个单独的.scss文件不引入这些变量? |
plugins必须是数组类型 |
In order to be able to inject scss variables globally
import scss-bundle to get bundledContent
resource: The absolute path of the global scss file that needs to be injected(support array).
projectDirectory: Absolute project location, where node_modules are located.
Take effect when resource & projectDirectory is set.
Reference #425