Closed jeggett closed 7 years ago
Good catch. I think the glob we want is glob.sync('./app/**/*.css')
. Think entries as regular imports.
PS. Dumb question: Is it possible to get css-modules working without referncing to main.css from JS code? If I will not remove import './main.css'; from index.js would css-modules potentially work after some adjustments?
CSS Modules effectively couple styling with JS. I don't see how else it could work.
In section "Managing Styles Outside of JavaScript" after configuring everything according to this section I got following error.
So in my project I changed this line:
from code listing to the following
to get rid of the error.
PS. Dumb question: Is it possible to get css-modules working without referncing to
main.css
from JS code? If I will not removeimport './main.css';
fromindex.js
would css-modules potentially work after some adjustments?