JSPM

webpack-loader-options-merge

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26648F
  • License MIT

Multiple LoaderOptionsPlugin merge to SingleOptions.

Package Exports

  • webpack-loader-options-merge

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webpack-loader-options-merge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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'
           }
        })
    ]
}