1.0.0 • Published 5 years ago

regular-loader v1.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

regular-loader

build status npm package license

Installation

# for webpack 2
# WIP
# for webpack 1
npm install --save-dev regular-loader@0.1.5

Example

webpack.config.js

const ExtractTextPlugin = require( 'extract-text-webpack-plugin' );

module.exports = {
    // ...
    module: {
      rules: [{
        test: /\.rgl$/,
        use: {
          loader: 'regular-loader',
          options: {
            extractCSS: true
          }
        },
      }]
    },
    plugins: [
      new ExtractTextPlugin( 'app.css' )
    ]
};

Related

Thanks