Skip to content

The ---module-bind-pre command-line argument leads to "configuration.module has an unknown property 'preLoaders'" error #4917

@georgir

Description

@georgir

The command-line argument --module-bind-pre generates an invalid configuration using the "preLoaders" key instead of "loaders" with "enforce":"pre".
[edit: and while at it, might as well change "loaders" to "rules"]

Likewise for post.

Tested on webpack 2.5.1, but from the code it seems to be the same in current version 2.6.0 as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions