Releases: dsc8x/sass-vars-loader
Releases · dsc8x/sass-vars-loader
v4.0.0
Dropping Babel
Because sass-vars-loader
is a NodeJS only project, there is not enough
justification to use Babel as a compiler. Therefore, starting with this
release, the NPM package will use the source code directly instead of
a compiled version.
The downside: sass-vars-loader
now requires NodeJS version 8
or greater.
The benefit: No unnecessary polyfills anymore when using a recent Node version.
v3.4.0
With this release, you can now include Sass files:
{
loader: '@epegzz/sass-vars-loader',
options: {
files: [
path.resolve(__dirname, 'path/to/utils.scss'), // <-- new
path.resolve(__dirname, 'path/to/styles.json')
]
}
}
This can be useful in case you want to use Sass functions in your JavaScript/JSON files, like this:
// utils.scss
@function semiTransparent($color) {
@return rgba($color, 0.5);
}
// styles.json
{
"backgroundColor": "semiTransparent(blue)"
}