We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在开启最小化主包的功能下,当前分包中公用scss全部拷贝至需要使用的页面,导致拷贝多份,是否可以保持原有结构不变,节省分包size。
能够优化scss的打包逻辑,示例demo:https://github.com/heymie/test_sub_common_scss
The text was updated successfully, but these errors were encountered:
与分包无关,Sass 的行为就是会把 @import merge 到同一个输出的样式文件中。
@import
建议 Sass 变量、函数使用 Sass @import,公共样式使用 JS import。这样公共样式才能被 Webpack Splitchunk 正确抽取到公共模块。
Sorry, something went wrong.
No branches or pull requests
这个特性解决了什么问题?
在开启最小化主包的功能下,当前分包中公用scss全部拷贝至需要使用的页面,导致拷贝多份,是否可以保持原有结构不变,节省分包size。
这个 API 长什么样?
能够优化scss的打包逻辑,示例demo:https://github.com/heymie/test_sub_common_scss
The text was updated successfully, but these errors were encountered: