B
B
Beaver Nubyar2017-02-20 13:09:50
Automation
Beaver Nubyar, 2017-02-20 13:09:50

How to connect plugins via nmp?

Hello. I just can't figure out how to install and use some add-ons through npm.
Let's say normalize/magnific. I install them via

npm install --save-dev normalize.styl
npm install --save-dev magnific-popup

What's next? How to connect them, use them? Is it possible to automatically put them in the directory I need, and not in node_modules?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2017-02-20
@streetflush

Where to put them automatically and how to use them?
You downloaded the module code, it can be for the server, it can be for the assembler or for the frontend. Only the one who writes the project knows how and where to connect it. Therefore, all modules write docks how to use it in one case or another.

K
Konstantin Velichko, 2017-02-22
@Zoxon

I use gulp-include for this , you can also use webpack
Example: https://github.com/zoxon/gulp-front

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question