sass-bulk-import-loader
v0.1.1
Published
import directories in SCSS with Webpack
Downloads
637
Maintainers
Readme
sass-bulk-import-loader
This loader for Webpack is based on gulp-sass-bulk-import by Matthew Conlen
installation
npm install --save-dev sass-bulk-import-loader
usage
@import "some/path/*";
// becomes
// @import "some/path/file1.scss";
// @import "some/path/file2.scss";
// ...
then add loader to require
call
require('css!sass!sass-bulk-import!./styles.scss');
or webpack config
{
test: /\.scss$/,
loader: 'style!css!sass!sass-bulk-import'
}
enjoy