Simple example of how Gulp can be integrated with both: Webpack and Browserify. The application is simple: It will require 2 files: print.js
and square.js
, and then print the result of square 5 in console:
- Have Gulp installed globally :
npm install -g gulp
To run the tasks, you need to run them as we normally do:
gulp browserify
-> to run the task ofbrowserify
gulp webpack-no-config
-> to run the task ofwebpack
without the config filegulp webpack-config
-> to run the task ofwebpack
using the config filegulp
-> run the 3 tasks