Skip to content

htmlLoader property not allowed in webpack >= v2.0.0 configs  #135

@nevcos

Description

@nevcos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions