Skip to content

Instantly share code, notes, and snippets.

@crobinson42
Created March 4, 2016 22:09
Show Gist options
  • Save crobinson42/9df1a51a95f502c23397 to your computer and use it in GitHub Desktop.
Save crobinson42/9df1a51a95f502c23397 to your computer and use it in GitHub Desktop.
Sails.js - tasks/config/browserify.js
/**
* 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