简体   繁体   English

如何将两个 scss 编译为两个不同的 css 文件

[英]how to compile two scss to two different css file

I have two SCSS files that I want to make two css from each SCSS我有两个 SCSS 文件,我想从每个 SCSS 制作两个 css

I have this right now for one SCSS file:我现在有一个 SCSS 文件:

"watch:sass": "node-sass assets/stylesheets/custom.scss assets/stylesheets/custom.css -w",
"compile:sass": "node-sass assets/stylesheets/custom.scss assets/stylesheets/custom.comp.css",

How can add one more to this?怎么能多加一个呢?

May i know which editor are you using??????请问你用的是哪个编辑器?????? If you are using something like VSCode then there is an extension named LiveSASS compiler which watches and then automatically compiles your SASS files to css files.如果您使用的是 VSCode 之类的东西,那么有一个名为 LiveSASS 编译器的扩展程序可以监视并自动将您的 SASS 文件编译为 css 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM