EN
SCSS - compile and minify to css file
10
points
In this short article, we want to show how to compile and compress *.scss files with scss command.
Quick solution:
sass "input_file.scss:output_file.min.css" --style compressed
or:
sass --watch "input_file.scss:output_file.min.css" --style compressed
Note: under Windows, sometimes it is necessary to use
npxcommand or fullscsspath.So you can run:
npx sass "input_file.scss:output_file.min.css" --style compressed
sasspath under Windows 10 is:/c/Users/MY_USER_NAME/AppData/Roaming/npm/sass.
Result screenshot: