postcss-import
17.0.1 · 13 Oct 2026MIT52.1M / weekRepositoryHomepagenpmAtom feed
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 addnode_modulesin the path anymore (or using@import "../node_modules/...").
Also,index.csscan 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.