New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import css file from node_modules? #352
Comments
Use sass instead. You can use my repo as an example: https://github.com/amilajack/popcorn-time-desktop Check out this webpack file |
How does using sass solve the problem of importing css files? I have a similar issue in which i need to use ag-grid so i need to do a
How would using sass solve that issue? |
I solved it by adding this to my webpack.config.developement.js and webpack.config.production:
This is probably not the optimal solution since this goes through all your CSS files under node_modules. For the specific files you mentioned, you might be able to do something like this:
|
Makes sense. Can this be closed? |
Yeah sure. Unless @csprance have more questions. |
Yep feel free to close it. I didn't end up using any of the solutions here because they didn't seem to work.
this way it pulled only the css i needed from the specific themes needed |
Other possible solution is to use Source: webpack-contrib/css-loader#308 |
I was wondering what changes should I make to import css files from node_modules into my components? boilerplate only imports css files if they have .global.css or if they are in the same folder as js files.
The text was updated successfully, but these errors were encountered: