Created
February 24, 2014 03:51
-
-
Save michaelBenin/9181690 to your computer and use it in GitHub Desktop.
Sample grunt browserify config
This file contains 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: { | |
modern: { | |
src: ['client/js/init.js'], | |
dest: 'built/static/js/<%= pkg.name %>.js', | |
options: { | |
debug: true, | |
noParse: [], | |
transform: [ | |
'hbsfy' | |
] | |
} | |
}, | |
test: { | |
src: [ | |
'client/js/init.js', | |
'client/js/test/init.js' | |
], | |
dest: 'built/test/test-<%= pkg.name %>.js', | |
options: '<%= browserify.modern.options %>' | |
}, | |
legacy: { | |
src: ['client/js/init.js'], | |
dest: 'built/static/js/legacy-<%= pkg.name %>.js', | |
options: { | |
debug: true, | |
noParse: [], | |
transform: [ | |
'hbsfy' | |
] | |
} | |
}, | |
legacy_test: { | |
src: [ | |
'client/js/test/init.js', | |
'client/js/init.js' | |
], | |
dest: 'built/test/legacy-test-<%= pkg.name %>.js', | |
options: '<%= browserify.legacy.options %>' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment