@arted/use-loader

use css module loader for webpack

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Aug 9, 2018Aug 9, 2018Minified + gzip package size for @arted/use-loader in KB

Readme

use-loader

use css module loader for webpack

Installation

npm

$ npm install @arted/use-loader

or yarn

$ yarn add @arted/use-loader

Usage

// webpack.config.js
module.exports = {
    ...
    module: {
        rules: [{
            test: /\.scss$/,
            use: [
                "@arted/use-loader", // add use function which load css module
                "style-loader", // creates style nodes from JS strings
                "@arted/css-loader", // translates CSS into CommonJS
                "@arted/sass-loader" // compiles Sass to CSS
            ]
        }]
    }
};

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.