build status npm package npm package next license
# for webpack 2/3/4
npm i regular-loader@^1.0.0 -D# for webpack 1
npm i regular-loader@^0.1.5 -Dwebpack.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' ) ] };
webpack.config.js
const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' ); module.exports = { // ... module: { rules: [{ test: /\.rgl$/, use: { loader: 'regular-loader', options: { extractCSS: true } }, }] }, plugins: [ new MiniCssExtractPlugin( { filename: 'app.css', } ) ] };