webpack-loader-options-merge

0.0.3 • Public • Published

webpack-loader-options-merge

Multiple LoaderOptionsPlugin merge to SingleOptions.

for webpack2

Usage

var loaderOptionsMerge = require('webpack-loader-options-merge');
loaderOptionsMerge(webpackConfigObject);
webpack(webpackConfigObject);

from

{
    plugins: [
        new webpack.LoaderOptionsPlugin({
           options: {
            a: 'a value'
           }
        }),
        ...
        new webpack.LoaderOptionsPlugin({
           options: {
            b: 'b value'
           }
        })
    ]
}

to

{
    plugins: [
        new webpack.LoaderOptionsPlugin({
           options: {
            a: 'a value',
            b: 'b value'
           }
        })
    ]
}

Package Sidebar

Install

npm i webpack-loader-options-merge

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • frontainer