M
M
MeloD2018-02-11 16:03:41
npm
MeloD, 2018-02-11 16:03:41

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';

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question