A require hook to compile CSS Modules in runtime. Contribute to css-modules/css-modules-require-hook development by creating an account on GitHub.
Now, there are two ways to attach hook: manually or using preset file.The first one allows you to pass options manually after module was required. Example:const hook = require('css-modules-require-hook'); hook({ generateScopedName: '[name]__[local]___[hash:base64:5]', }); // ...
css-modules/css-modules-require-hookPublic Notifications Fork47 Star486 Code Issues21 Pull requests5 Actions Security Insights Additional navigation options Files master demo scripts src test .babelrc .editorconfig .gitignore .npmignore .travis.yml ...
A require hook to compile CSS Modules in runtime. Contribute to css-modules/css-modules-require-hook development by creating an account on GitHub.
Hi, I am using css-modules-require-hook on my koa.js server. I do server side rendering of react components. It worked fine when just using css but now we want to switch to Sass in order to use variables. I am using the following code to...
Hook setup looks like this, require('css-modules-require-hook')({prepend:[require('postcss-import')(),require('postcss-cssnext')()]}) Thepostcss-cssnextportion works fine, but it bombs out because postcss-import is async only. I've opened an issue atpostcss-importsince it looks like th...
https://github.com/css-modules/css-modules-require-hook/tree/3.0.0/test/tokens In this test-case I had to provide the path manually because I launched tests from the ancestor folder and node.js haven't checked specified node_modules folder which was nested within test-case folder. Author ...