postcss-modules
Advanced tools
Changelog
6.0.0
The resolve
option has two parameters now and can return null
. Thanks to Rene Haas (@KingSora)
https://github.com/madyankin/postcss-modules/commit/86d8135cb5014d0b2848ef395608ee74d82bd179
Parameters:
file
— a module we want to resolveimporter
— the file that imports the module we want to resolveReturn value: string | null | Promise<string | null>
postcss([
require("postcss-modules")({
resolve: function (file, importer) {
return path.resolve(
path.dirname(importer),
file.replace(/^@/, process.cwd()
);
},
}),
]);
icss-replace-symbols
replaced with with icss-utils
by Jason Quense (@jquense). The updated replacer works better and will replace values in selectors, which didn't work until now. https://github.com/madyankin/postcss-modules/pull/145Changelog
5.0.0
composes
on Windows by @sapphi-red https://github.com/madyankin/postcss-modules/pull/135Changelog
4.3.1
Changelog
4.3.0
generic-names
dependency to reduce packages size by Bogdan Chadkin (@TrySound) https://github.com/madyankin/postcss-modules/pull/129Changelog
4.2.1
resolve
option behaviour by @kamilic https://github.com/madyankin/postcss-modules/pull/127Changelog
4.2.0
resolve
option to configure lookup paths for composes/from by @kamilic https://github.com/madyankin/postcss-modules/pull/126Changelog
4.1.1