3 ms·
require('style!css!../css/style.css'); What is this I don't even.
by eyelidlessness 10y ago
require('style!css!../css/style.css');
What is this I don't even.
- thelarkinn 10y agoNot the conventional method of using it. Is a legacy syntax, you just require the file and it will be imperitively loaded via your loader chain.
- pigpigs 10y agoIn case it was really a question: this passes `../css/styles.css` into the css loader then the style loader when `require`-ing. Normally this is setup in a webpack.config so you can just do `require('../css/styles.css')` normally