NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #664 most downloaded on npm
PostCSS plugin to import CSS files
Last release 1 months ago
14 Aug 2026
Release timing varies
gaps range from 5 weeks to 1.2 years
Most releases are documented
notes for 44 of 57 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
57 releases · first in 2014
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release should not have breaking changes for the vast majority of users; only those with @charset statements in their CSS may be affected.
This release should not have breaking changes for the vast majority of users; only those with @charset statements in their CSS may be affected.
@charset statements (#447)@charset statements are not at the top of files (#447)@charset (#436, #447)BREAKING: Upgrade to postcss v8 and require it as a peerDependency (#427, #432)
Nothing published for this version
Removed: Support for Node.js v4
- Added: filter option
filter optionChanged: A syntax error in an imported file now throws an error instead of just warning
Removed: deprecated addDependencyTo option
Added: addModulesDirectories option
addModulesDirectories option (#256)Changed: Deprecated addDependencyTo option, it is not needed if using postcss-loader >= v1.0.0
transform option
(#250)pkg-resolve is no longer a dependency; this should fix some issues
with webpack. jspm users must manually install pkg-resolve if they want to
load jspm modules (see https://github.com/postcss/postcss-import#jspm-usage
for more info) (#243)addDependencyTo option, it is not needed if using
postcss-loader >= v1.0.0
(#251)Fixed: Warn about all @imports after other CSS declarations
Fixed: Nested import ordering (#236 - @RyanZim)
Fixed: prevent JSPM to throw unrecoverable error
- Fixed: JSPM support
- Added: JSPM browser field
Fixed: Comments between imports statements are ignored
- Fixed: missing "lib" folder
All imports statements must be at the top of your file now, per CSS specification. You should use postcss-reporter to see the warnings raised.
All imports statements must be at the top of your file now, per CSS specification.
You should use postcss-reporter to see the warnings raised.
encoding option. Encoding can be specified in custom load optionpostcssImport({
load: function(filename) {
return fs.readFileSync(filename, "utf-8")
}
})
(#144)
Globs can be implemented with custom resolve option
postcssImport({
resolve: function(id, base) {
return glob.sync(path.join(base, id))
}
})
(#116)
transform option and undefined result will be
skipped
(#147)options.plugins are applied to unprocessed ast before imports
detecting
(157)load option
(#144)main field
(153)Note: _If you miss options/default behavior (glob etc), a new plugin will handle all those things. Please follow issue #145 _
Fixed: ensure node 0.12 compatibility, round 2
Fixed: performance issue because of cloned options
Added: ensure node 0.12 compatibility
Added: option addDependencyTo to make the integration with webpack more elegant (ref postcss-loader#31)
addDependencyTo to make the integration with webpack more
elegant
(ref postcss-loader#31)Removed: compatibility with postcss v4.x
Added: skipDuplicates option now allows you to not skip duplicated files
skipDuplicates option now allows you to not skip duplicated files
(#67)Note that it's not enabling async fs read yet. It has been added to fix breaking change introduced by 6.1.0.
plugins option, to run some postcss plugin on imported files
(#55)bower_components is now part of the default paths
(#66)async option allow to use enable PostCSS async API usage.
Note that it's not enabling async fs read yet. It has been added to fix breaking
change introduced by 6.1.0.Changed: warnings messages are now using postcss message api (4.1.x)
Fixed: globbed imports work for module directories
Fixed: glob import now works with single quote @import
@import (#36)Added: glob pattern are now supported if glob option is set to true
Fixed: regression of 5.1.0: files which only contain same @import rules were skip
Added: files with the same content will only be imported once. Previously, only the full path was used to determine if a file has already been importe
node_modules)
(#29)Fixed: regression of 5.0.2: AST parent references were not updated
Fixed: indentation and code style are now preserved
Fixed: breaking bug with remote stylesheets (#21 & #22)
Added: compatibility with postcss v4.x
path option only (no need for from) (#14)Fixed: irregular whitespace that throw syntax error in some environnements
Added: web_modules is now in module directories that are used to resolve @import (#13).
web_modules is now in module directories that are used to resolve @import (#13).Added: windows compatibility (by building on AppVeyor)
root optionAdded: onImport callback offers a way to get list of imported files (ref)
onImport callback offers a way to get list of imported files (ref)Added: ability to consume local modules (fix #12)
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/...
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.
Added: compatibility with postcss v3.x
Fixed: relative import path stack
Added: Move ignored import at top & adjust related media queries, to make them work (fix #2)
parse-import module dependencyAdded: Support empty files (cssnext/#24)
✨ First release based on rework-import v1.2.0 (mainly for fixtures)
✨ First release based on rework-import v1.2.0 (mainly for fixtures)
Your coding agent can read these notes before it upgrades. Set up the MCP server →