-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
51 lines (43 loc) · 1.39 KB
/
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
// 存放未编译的文件夹
const ROOT_DEV ='src';
// 存放编译过后的文件夹
const ROOT_BUILD ='build';
// 存放打包后的文件夹
const ROOT_ZIP ='zip';
module.exports = {
// 端口号设置
port: 9090,
// 代理请求设置
proxyTable: {
// 代理ip
target: 'http://0.0.0.1',
// 代理ip接口名字
inner: 'inner'
},
rootDev: ROOT_DEV,
rootBuild: ROOT_BUILD,
rootZip: ROOT_ZIP,
// 未编译的路径
dev: {
html : ROOT_DEV + '/**/*.html',
css : ROOT_DEV + '/assets/css/*.{scss,css}',
scss : ROOT_DEV + '/assets/css/**/*.scss',
js : ROOT_DEV + '/assets/js/**/*.js',
lib : ROOT_DEV + '/assets/lib/**/*',
font : ROOT_DEV + '/assets/font/**/*',
image: [ROOT_DEV + '/assets/images/**/*.{png,jpg,gif,ico}', '!'+ ROOT_DEV + '/assets/images/sprite/**/'],
tpl : ROOT_DEV + '/**/*.tpl',
},
// 编译过后的路径
build: {
html : ROOT_BUILD + '',
css : ROOT_BUILD + '/assets/css/',
js : ROOT_BUILD + '/assets/js/',
lib : ROOT_BUILD + '/assets/lib/',
font : ROOT_BUILD + '/assets/font/',
image: ROOT_BUILD + '/assets/images/',
zip : ROOT_BUILD + '/**/*'
},
// 雪碧图
sprite: ROOT_DEV + '/assets/images/sprite'
};