Need private packages and team management tools?Check out npm Teams »

jsx-controls-loader

0.1.1 • Public • Published

regexp-loader

webpack regexp loader

Installation

npm install --save-dev regexp-loader

Usage

 
var webpack = require('webpack');
 
module.exports = {
    entry:  './entry.js',
    output: {
        path: __dirname,
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            {
                test: /^.*$/,
                loader: "regexp",
                rules: [
                    {
                        'for': /foo/g,
                        'do': 'bar'
                    },
                    {
                        'for': 'foo',
                        'do': function () {
                            return 'bar'
                        }
                    }
                ]
            }
        ]
    }
};
 

Install

npm i jsx-controls-loader

DownloadsWeekly Downloads

8

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar