mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
40 lines
969 B
JavaScript
40 lines
969 B
JavaScript
module.exports = {
|
|
options: {
|
|
browserifyOptions: {
|
|
debug: false
|
|
},
|
|
exclude: "",
|
|
transform: [
|
|
['babelify', {
|
|
presets: ['es2015'],
|
|
plugins: [
|
|
['transform-es2015-classes', {loose: true}]
|
|
]
|
|
}]
|
|
]
|
|
},
|
|
dev: {
|
|
options: {
|
|
browserifyOptions: {
|
|
debug: true
|
|
},
|
|
watch: true
|
|
},
|
|
src: [
|
|
'<%= paths.js.src %>/**/*.js',
|
|
'!<%= paths.js.src %>/vendors/**/*.js'
|
|
],
|
|
dest: '<%= paths.js.dist %>/app.js'
|
|
},
|
|
prod: {
|
|
options: {
|
|
banner: '/*! <%= package.title %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
|
},
|
|
src: [
|
|
'<%= paths.js.src %>/**/*.js',
|
|
'!<%= paths.js.src %>/vendors/**/*.js'
|
|
],
|
|
dest: '<%= paths.js.dist %>/app.js'
|
|
}
|
|
};
|