json-css-module-loader

1.0.2 • Public • Published

Json Css Module Loader

Build Status npm version

Webpack loader to load css-module json output and the corresponding css file. ie. loading myApp.css.json will provide the requiring module with the css-module classnames and create a require for myApp.css so that the css is included.

Installation

npm install --save json-css-module-loader

Usage

Webpack 1 config

You may need to add .css.json (or similar) to your webpack resolve extensions.

module: {
    loaders: [
        { test: /\.css\.json$/, loader: 'json-css-module-loader' }
    ]
}

License

This loader is adapted from the json-loader;

MIT (http://www.opensource.org/licenses/mit-license.php)

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i json-css-module-loader

    Weekly Downloads

    48

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • tomdye