Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

importLoaders option descriptions contradictory? #510

Closed

Description

@ndresx

Do you want to request a feature or report a bug?
documentation

What is the current behavior?
Under Options (https://github.com/webpack-contrib/css-loader#options), the description for importLoaders mentions before ...

Number of loaders applied before CSS loader

... while under the importLoaders section (https://github.com/webpack-contrib/css-loader#importloaders) it says used after

That many loaders after the css-loader are used to import resources.

What is the expected behavior?
It should be either before, or after, or not? Maybe it needs some commas too, but honestly, it sounds a bit confusing to me.

As far as I am understanding this, if for example sass-loader and postcss-loader are used before the css-loader, importLoaders could be set to 2 to make use of both loaders when using @import, but also to 1 if it should only use the sass-loader?

Activity

  1. michael-ciniawsky commented on Apr 23, 2017

    @michael-ciniawsky
    Contributor

    Yep the spelling could be improved, PR welcome 😛

    As far as I am understanding this, if for example sass-loader and postcss-loader are used before the css-loader, importLoaders could be set to 2 to make use of both loaders when using @import, but also to 1 if it should only use the sass-loader?

    👍

  2. michael-ciniawsky commented on Apr 23, 2017

    @michael-ciniawsky
    Contributor

    Fixed by #512 @ndresx Thx again 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions