Nodeschool Public Materials

    named.css-webpack

    0.1.1 • Public • Published

    Named.css Webpack Plugin

    using named.css as a webpack plugin

    npm npm GitHub stars license

    [TOC]

    Installation

    npm i -D named.css-webpack

    Usage

    in your webpack.config.js file just add the plugin

    const NamedCSS = require('named.css-webpack')
     
    const config = {
      ...,
      plugins: [
        ...,
        new NamedCSS('ncss-'), // prefix ('ncss-') is not required
        ...,
      ]
    };
     
    module.exports = config;

    ** It's not production ready yet**

    but if you liked it help me make it stable and ready ;)

    Install

    npm i named.css-webpack

    DownloadsWeekly Downloads

    4

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • ardalanamini