B
B
Beetle2019-08-19 14:29:51
gulp.js
Beetle, 2019-08-19 14:29:51

How to include a js plugin in a project?

I have a gulp build.
There is js plugin nouislider.js which I installed via yarn add nouislider --dev
How can I use it in the project now?
Previously, I just copied js and css from the plugin to a folder and connected them via script:src and link:rel
. Now there is a node_modules/nouislider folder , I can do a task with copying js and css to the build folder , but in my opinion it is not the right approach.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cython, 2019-08-19
@Jukk

Connect the plugin, via commonJS or via import in ES6 , to the main build script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question