S
S
Sergey2017-09-26 07:46:15
gulp.js
Sergey, 2017-09-26 07:46:15

Is it possible to import downloaded npm packages into a project using gulp, like in webpack?

When using webpack, you can import the downloaded npm package into your project using the following syntax:
Import $ from 'jquery';
Is it possible to do the same using gulp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2017-09-26
@spacecrew

Except like this: https://www.npmjs.com/package/webpack-stream
The bottom line is that Gulp is just a task manager.
He knows how to run tasks and skip the flow of files inside them, from one module to another.
Webpack is a module bundler, it can bundle modules.
Read about the difference between them, it’s easy to google and “toasterize”, for example: Webpack vs Gulp, clearly and understandably. Or why do I need another powerful tool?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question