sass-bulk-import-loader

0.1.1 • Public • Published

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

/sass-bulk-import-loader/

    Package Sidebar

    Install

    npm i sass-bulk-import-loader

    Weekly Downloads

    239

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • chicoxyzzy