Skip to content

Releases: css-modules/css-modules-require-hook

Peer-Dependencies update

12 Oct 19:11
Compare
Choose a tag to compare
1.0.11

version update

API update

05 Oct 19:47
Compare
Choose a tag to compare

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

14 Sep 18:50
Compare
Choose a tag to compare

Added filename argument to the [pre]processCss functions:

hook({
  processCss: (css, filename) => { /* ... */ }
});

Bug fix related to the "extensions" option

11 Sep 19:02
Compare
Choose a tag to compare

New features

10 Sep 20:40
Compare
Choose a tag to compare

Features:

  • extensions - opportunity for adding custom extentions
  • preprocessCss - opportunity for preprocessing styles

prs: #33, #32

New features and bug fixes

03 Sep 19:13
Compare
Choose a tag to compare

Features:

  • the require hook outputs warnings from the postcss plugins
  • possibility to provide the to option to the lazyResult instance #24
  • fixed non-relative imports issue #23
  • readme updated #20, #22
  • peerDependencies version update #25

API updates

28 Aug 21:36
Compare
Choose a tag to compare

Added new options for the better experience.

  • createImportedName
  • generateScopedName
  • processCss p
  • rootDir root d
  • use u

Non-relative imports resolve to node_modules

12 Aug 23:22
Compare
Choose a tag to compare

Postcss dependencies moved to peerDependencies

09 Aug 19:01
Compare
Choose a tag to compare

Code quality improvement

09 Aug 17:17
Compare
Choose a tag to compare

Added eslint, isparta and precommit hooks: #7, #9.
Few inner updates: global tokens cache and global root directory.