Created
March 4, 2016 22:09
-
-
Save crobinson42/9df1a51a95f502c23397 to your computer and use it in GitHub Desktop.
Sails.js - tasks/config/browserify.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Browserify files | |
*/ | |
module.exports = function(grunt) { | |
grunt.config.set('browserify', { | |
dist: { | |
files: { | |
// ingores browserify on all files in /dependencies | |
'.tmp/public/js/bundle.js' : ['assets/js/**/*.js', '!assets/js/dependencies/**/*.js'], | |
}, | |
options: { | |
watch : true, | |
keepAlive : true, | |
debug : true, | |
transform: ['babelify'] | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-browserify'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment