Skip to content

Notify readers that module loaders arrangement is important. #3831

@alamenai

Description

@alamenai

When I was reading Asset Arrangement I wrote the config manually like this :

module: {
       rules: [{
           test: /\.css$/,
           use: ["css-loader", "style-loader"]
       }]
   }

The code was invoking an error but I COULD NOT find where's the error Then I figured out that the right arrangement of modules should be :

module: {
       rules: [{
           test: /\.css$/,
           use: ["style-loader", "css-loader"]
       }]
   }

But the section of Loading CSS did not mention that the order is matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions