How can I component-level import a css file from node_modules? #16412
-
In my project, we use Bootstrap on one of our pages. However, on every other page, we want to maintain our own custom styling. Right now, we are importing the I have looked at the Component-Level CSS docs and it seems like this could be adapted to how i want this to operate. My line of thinking is that I can import the bootstrap css file, and then re-export it as a Does anyone have any suggestions for how to get around this? Or maybe another approach that I haven't considered to accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is an RFC that relates to this as well as an issue that is similar #13282 (and also a discussion that links a few other issues #15577 (comment)) Unfortunately just renaming it to be a |
Beta Was this translation helpful? Give feedback.
There is an RFC that relates to this as well as an issue that is similar #13282 (and also a discussion that links a few other issues #15577 (comment))
Unfortunately just renaming it to be a
module.css
won't work (as you saw first hand). I haven't seen any other ways around this problem.