https://github.com/frontainer/webpack-loader-options-merge
Multiple LoaderOptionsPlugin merge to SingleOptions.
https://github.com/frontainer/webpack-loader-options-merge
webpack webpack-config
Last synced: 12 months ago
JSON representation
Multiple LoaderOptionsPlugin merge to SingleOptions.
- Host: GitHub
- URL: https://github.com/frontainer/webpack-loader-options-merge
- Owner: frontainer
- License: mit
- Created: 2017-01-11T04:29:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T09:35:47.000Z (over 9 years ago)
- Last Synced: 2025-04-14T01:52:04.378Z (about 1 year ago)
- Topics: webpack, webpack-config
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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'
}
})
]
}
```