-
-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Description
I'm submitting a bug report
Webpack version:
3.3.0
HTML-Loader version:
0.4.5
Please tell us about your environment:
Windows 10 + Node 6.11.0 + NPM 5.3.0
Current behavior:
Using htmlLoader
property as described on docs give the following error when calling webpack:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property 'htmlLoader'. These properties are valid:
Expected/desired behavior:
Because webpack no longer accepts properties not from webpack schema, the docs should be updated to use webpack.LoaderOptionsPlugin
:
plugins: [
new webpack.LoaderOptionsPlugin({
options: {
htmlLoader: {
minimize: true
}
}
})
]
More information here: https://stackoverflow.com/a/43135993/198787