Releases: postcss/postcss-import
Releases · postcss/postcss-import
8.1.2
8.1.1
8.1.0
8.0.2
8.0.1
8.0.0
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.
- Removed: async mode/option (now async by default)
(#107) - Removed: "bower_components" not supported by default anymore,
use "path" option to add it back - Removed:
encodingoption. Encoding can be specified in customloadoption
postcssImport({
load: function(filename) {
return fs.readFileSync(filename, "utf-8")
}
})(#144)
- Removed: glob support
(#146)
Globs can be implemented with custom resolve option
postcssImport({
resolve: function(id, base) {
return glob.sync(path.join(base, id))
}
})(#116)
- Changed: custom resolve has more responsibility for paths resolving.
See resolve option
for more information about this change
(#116) - Changed: support promise in
transformoption andundefinedresult will be
skipped
(#147) - Changed:
options.pluginsare applied to unprocessed ast before imports
detecting
(157) - Added: custom resolve function can return array of paths
(#120) - Added: custom syntax in imported files support
(#130) - Added: support custom
loadoption
(#144) - Added: detect css extension in package.json
mainfield
(153)
Note:
_If you miss options/default behavior (glob etc), a new plugin will handle all
those things.
Please follow issue #145
_
7.1.3
7.1.2
7.1.1
7.1.0
- Added: option
addDependencyToto make the integration with webpack more
elegant
(ref postcss-loader#31)