Package Exports
- task-browserify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (task-browserify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Task-Browserify
Builds a bundle.js file from a valid ES6 modularized source. Also there is Babel.js included, so you can use ES6+ syntax.
npm install --save task-browserify
If you have any idea on other tasks that you need in your project, just tell me and I will most likely create it for you :).
Configurations
Task will have the name 'browserify:watch' and browserify:build.
Build will build one time. Watch will build on change, all watcher will be resolved automatically.
rootFile
Glop for the initial JS-file.
Please note that the watcher will resolve all required files and activate listener.
output
Glop for the destination of the bundle.js.
Example:
require("task-browserify")(gulp, {
rootFile: './src/app.js',
output: dest + 'js/'
})Advanced
Add this line to your gulp object:
gulp.isProduction = trueWill add source maps to your code.