Skip to content

Releases: epegzz/sass-vars-loader

v4.0.0

29 Dec 09:50
Compare
Choose a tag to compare

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

08 Jul 20:01
Compare
Choose a tag to compare

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)"
}

v3.3.2

16 Jun 12:35
Compare
Choose a tag to compare
v3.3.2

v1.2.0

13 Apr 20:52
Compare
Choose a tag to compare
Merge pull request #12 from epegzz/feat/hot-reload

Feat/hot reload