编译时临时包含一个sass文件
我的应用程序中的所有 sass 文件都被编译成一个大的 css 文件,但它变得相当臃肿。为了监视膨胀的来源,我编写了一个批处理文件来遍历每个单独的 sass 文件并将其编译为单独的样式表。问题是每个样式表都依赖于一个特定的样式表 - _mixins_and_vars.scss - 它只在我的总体 styles.scss 样式表中包含一次,并且在其他 sass 文件中根本没有引用。
有没有办法在编译运行时临时导入额外的 sass 样式表?
All the sass files in my application are compiled into one big css file, but it's become rather bloated. In order to monitor where the bloat is coming from I've written a batch file to go through each individual sass file and compile it as a separate stylesheet. The problem is that each stylesheet is dependent on one in particular one - _mixins_and_vars.scss - which is only included once in my over-arching styles.scss stylesheet, and not referenced at all in the other sass files.
Is there a way I can temporarily import extra sass stylesheets while compilation is running?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一个建议:在批处理脚本中,
:-)
Here's a suggestion: in your batch script,
:-)