Libsass: Use NODE-SASS to Output Multi CSS Files

Created on 18 Jan 2018  路  1Comment  路  Source: sass/libsass

I would like to use node-sass let SCSS files compile to 2 css files (style.css and style.min.css).
So I use the Command Line Interface:
node-sass --watch styles/main.scss --output styles/main.css --output-style nested --output styles/main.min.css --output-style compressed

But it only output main.min.css.
How should I do to let it output two files?

>All comments

This is not possible. You can only compiles one scss file to one css file. You need to run the command twice with different output styles.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catamphetamine picture catamphetamine  路  7Comments

GottZ picture GottZ  路  3Comments

luiscla27 picture luiscla27  路  10Comments

Hint-ru picture Hint-ru  路  5Comments

nex3 picture nex3  路  9Comments