Answer the question
In order to leave comments, you need to log in
How to automatically pull css from npm packages?
I do all the scripts through browserify, I create a bundle.
For example, there is magnific-popup, there is js and css. I figured out js, everything is fine, but what about css? It can be as simple as that. @import 'magnific-popup';
While importing like this
@import './node_modules/magnific-popup/dist/magnific-popup';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question