Releases: css-modules/css-modules-require-hook
Releases · css-modules/css-modules-require-hook
Peer-Dependencies update
1.0.11 version update
API update
Featuring new options:
append
array — adds new plugins to the end of the PostCSS pipeline.prepend
array — adds new plugins to the beginning of the PostCSS pipeline.
So now, you don't need to use the use
option to setup the whole list of plugins. Try to use append
or prepend
options which extend the list of the core plugins with the new ones.
So you may use aliases for the core plugins (like generateScopedName
) and provide additional plugins with the append
and prepend
options simultaneously.
Also added few basic examples of usage to the readme. Enjoy
API updates
Added filename argument to the [pre]processCss functions:
hook({
processCss: (css, filename) => { /* ... */ }
});
Bug fix related to the "extensions" option
New features
New features and bug fixes
API updates
Added new options for the better experience.
createImportedName
generateScopedName
processCss
p
rootDir
root
d
use
u
Non-relative imports resolve to node_modules
Postcss dependencies moved to peerDependencies
See the Issue: #5