Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eyelidlessness
· 10y ago · 0 comments
require('style!css!../css/style.css');
What is this I don't even.
Comments
[–]
pigpigs
10y ago
In 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
[–]
thelarkinn
10y ago
Not 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.