The easiest way to compile scss file to css without using other tools like
webpack. And autoprefixer at the same time.
For some small project or teaching speech. It's too fat to deploy a webpack env. Now,
scss-to-csshelp us to compile scss file to css file at a none webpack project and autoprefixer.
Some configuration can be set, which it works better for you。
compileOnSave: Auto compile on document saved, defaulttrueautoPrefixer: Will autoprefixer. It can be run faster when turn off. defaulttrueoutput: Output style. defaultcompressed。exclude: The RegExp of path what you can to ignore(thevar.scss filewill never be compiled)。
This extension work well on all os. If any problem please let me known issue
We use
node-sassinstead oflibsass
node-sass, You need to install this module manually. Mayberootis required on linux.
Search
scss-to-cssand install in the marketplace.
Just for demo, you can change it by youself. If not exists, the default value will be
last 2 version.
ie > 9
iOS > 8
Android >= 4.4
ff > 38
Chrome > 38
instead of using
.browserslistrc, we recommend to use.scssrc.
{
"browsers": ["ie > 9", "iOS > 8", "Android >= 4.4", "ff > 38", "Chrome > 38"],
"outdir": "dist" // relative path of this '.scssrc' file.
}
// You can also set other config in this file.
// eg. compileOnSave,autoPrefixer,output,exclude