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
npx
command or fullscss
path.So you can run:
npx sass "input_file.scss:output_file.min.css" --style compressed
sass
path under Windows 10 is:/c/Users/MY_USER_NAME/AppData/Roaming/npm/sass
.
Result screenshot: