/regular-loader

A simple port of vue-loader for Regular

Primary LanguageJavaScriptOtherNOASSERTION

regular-loader

build status npm package license

Here is a simple example using regular-loader check it out

Installation

$ npm i regular-loader -D

Usage

webpack.config.js

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

module.exports = {
    // ...
    entry: './index.js',
    module: {
        loaders: [
            {
                test: /\.rgl$/,
                loader: 'regular'
            }
        ]
    },
    regular: {
        loaders: {
            css: ExtractTextPlugin.extract( 'css' ),
            mcss: ExtractTextPlugin.extract( 'css!mcss' )
        }
    },
    plugins: [
        // ...
        new ExtractTextPlugin( 'app.css' )
    ]
};

Related

Thanks