-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbundle.config.js
43 lines (43 loc) · 1.26 KB
/
bundle.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
bundle: {
vendor: {
scripts: [
{src: './bower_components/jquery/dist/jquery.js', minSrc: './bower_components/jquery/dist/jquery.min.js'},
{src: './bower_components/angular/angular.js', minSrc: './bower_components/angular/angular.min.js'}
],
styles: {
src: './bower_components/bootstrap/dist/css/bootstrap.css', minSrc: './bower_components/bootstrap/dist/css/bootstrap.min.css'
},
options: {
uglify: false, // never minify js
minCss: false, // never minify css
rev: false,
useMin: ['production', 'staging'] // use pre-minified src only on prod and staging
}
},
one: {
scripts: './content/js/one.js',
options: {
uglify: 'staging', // minify ONLY when NODE_ENV=staging
rev: 'staging'
}
},
two: {
scripts: './content/js/two.js',
options: {
uglify: ['production', 'staging'], // minify ONLY when NODE_ENV=staging or NODE_ENV=production
rev: ['production', 'staging']
}
},
threeve: {
scripts: './content/js/threeve.js',
options: {
uglify: true, // minify in all environments
rev: true
}
},
main: {
styles: './content/**/*.css'
}
}
};