-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.config.js
62 lines (61 loc) · 1.12 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var fs = require('fs');
module.exports = {
code: {
src: 'src/**/*.js',
main: 'src/index.js',
name: 'index.js',
dst: 'dist',
clean: [
'dist/**/*.js',
'dist/**/*.js.map'
],
map: './'
},
style: {
src: 'src/**/*.scss',
main: 'src/index.scss',
dst: 'dist',
clean: [
'dist/**/*.css',
'dist/**/*.css.map'
],
map: './'
},
template: {
src: 'src/**/*.view.html',
main: 'src/index.html',
module: 'templatesCache',
mainDst: 'dist',
inject: '<!-- inject:vendor:{{ext}} -->',
dst: 'dist',
min: {
removeComments: true,
collapseWhitespace: true,
removeEmptyAttributes: false,
collapseBooleanAttributes: true,
removeRedundantAttributes: true
},
clean: [
'dist/**/*.html',
'dist/templates.js'
]
},
font: {
dst: 'dist/fonts',
clean: 'dist/fonts'
},
image: {
src: 'src/img/**/*',
dst: 'dist/img',
clean: 'dist/img'
},
ext: {
jscs: '.jscsrc',
jshint: '.jshintrc',
browserslist: 'browserslist'
},
static: {
port: 8000,
livereload: true
}
};