1.0.1 • Published 6 years ago
sass-dedup-once-importer v1.0.1
sass-dedup-once-importer
This is an importer function which can be used with node-sass. it ensures that multiple import statements in sass/scss files get only imported once.
Install
To begin, you'll need to install sass-dedup-once-importer
:
npm install sass-dedup-once-importer --save-dev
Usage
sass-loader config:
{
importer: require('sass-dedup-once-importer')({
// webpack alias configs
alias: webpackConfig.resolve.alias,
// once import exclude regexp
exclude: /\b_variables\b|\belement-variables\b|\bmixins\b/,
}),
// other configs
// ...
}