next-classnames-loader

v1.0.3
Alternative webpack loader to automatically bind css-modules to classnames using cwd to fix next sub-folder bundle
webpack loader css modules css-modules classnames styles react bind and 1 more...

next-classnames-loader

npm version

Based on classnames-loader, this webpack loader is made to fix an issue related to next. Depending where you created folder inside next e.g. src/components, src/pages/home/components, the classnames-loader won't get the same absolute path and will fail to load classnames/bind.

Thanks to @itsmepetrov for the original classnames-loader, checkout the original readme for details and examples.

Installation

npm install next-classnames-loader -ED

License

MIT

npm i next-classnames-loader

Metadata

  • MIT
  • Whatever
  • Jérémy Barbet
  • released 4/11/2019

Downloads

Maintainers