You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to put the import call to another file. Compilers usually hoist them to the beginning of the file (as the spec defines imports are static and should be written at the top of file), so the css file will be called before the hook was attached.
// index.jsconsthook=require('css-modules-require-hook');hook({// the custom template for the generic classesextensions: ['.css'],generateScopedName: '[name]__[local]___[hash:base64:5]',camelCase: true});require('./app');
Hi, I got the following error when using this plugin:
My usage:
For your additional information, I'm using Webpack 3 and Babel 6. The project is using the ejected Create React App (CRA).
Any thoughts of how to solve this? Thanks.
The text was updated successfully, but these errors were encountered: