4 ms·
The irony is that these days, with nested selectors supported natively, there is zero need to use this heavy of a tool for this isolation.
by julik 2y ago
The irony is that these days, with nested selectors supported natively, there is zero need to use this heavy of a tool for this isolation.
- candiddevmike 2y agoYou can use CSS modules with your bundler to isolate things to the file they're imported in: https://vite.dev/guide/features#css-modules https://vite.dev/guide/features#css-modules
- julik 2y agoI see this is absolutely something I am not going to be using as long as I can help it (it is the same setup as importing CSS and MP4 in Webpack via the import declaration), but a good tidbit to know it exists.