Packages

postcss-import

17.0.1 · 13 Oct 2026MIT52.1M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major24 Nov 2014Where it was published

3.2.0 is the newest release of 3.x.

In short

2 changed

Release note

  • Added: ability to consume node modules (ref).
    This means you don't have to add node_modules in the path anymore (or using @import "../node_modules/...").
    Also, index.css can be ommited.

This means something like this

@import "../node_modules/my-css-on-npm/index.css";

can be written like this

@import "my-css-on-npm";

Dependencies of dependencies should be resolved as well.

Note that npm resolution is done after the default local behavior.

  • Changed: When importing a file multiple times in the same scope (same level of media queries), file will only be imported the first time.
    This is done to avoid having multiples outputs of a npm dep used multiples times in different modules.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.