Skip to content

Confusing usage of webpack rule.loader in react-scripts #5736

@dbFlower

Description

@dbFlower

In webpack.config.prod.js L391 L405 L420 L437, loaderis used instead of use. See: webpack.config.prod.js .

In file webpack.config.dev.js L318 L326 L340 L346 , it's correct usage use. See: webpack.config.dev.js

Webpack4 documentation here:

Rule.loader is a shortcut to Rule.use: [ { loader } ]. See Rule.use and UseEntry.loader for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions