Skip to content

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

Peer-Dependencies update

Choose a tag to compare

@mightyaleksey mightyaleksey released this 12 Oct 19:11
1.0.11

version update

API update

Choose a tag to compare

@mightyaleksey mightyaleksey released this 05 Oct 19:47

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

Choose a tag to compare

@mightyaleksey mightyaleksey released this 14 Sep 18:50

Added filename argument to the [pre]processCss functions:

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

Bug fix related to the "extensions" option

Choose a tag to compare

@mightyaleksey mightyaleksey released this 11 Sep 19:02

New features

Choose a tag to compare

@mightyaleksey mightyaleksey released this 10 Sep 20:40

Features:

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

prs: #33, #32

New features and bug fixes

Choose a tag to compare

@mightyaleksey mightyaleksey released this 03 Sep 19:13

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

Choose a tag to compare

@mightyaleksey mightyaleksey released this 28 Aug 21:36

Added new options for the better experience.

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

Non-relative imports resolve to node_modules

Choose a tag to compare

@mightyaleksey mightyaleksey released this 12 Aug 23:22

Issue: #14

Postcss dependencies moved to peerDependencies

Choose a tag to compare

@mightyaleksey mightyaleksey released this 09 Aug 19:01

See the Issue: #5

Code quality improvement

Choose a tag to compare

@mightyaleksey mightyaleksey released this 09 Aug 17:17

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