1 | module.exports = {
|
2 | src: "src",
|
3 | dest: "dist",
|
4 | front: "front",
|
5 | end: "end",
|
6 | programs: {
|
7 | test: {
|
8 | front: {
|
9 | tsconfig: {},
|
10 | extractCss: true, // 是否导出css
|
11 | entry: [], // 入口文件,系统会根据入口文件自动的生成对应的配置文件
|
12 | plugins: [], // 插件
|
13 | uglify: {
|
14 | enable: true,
|
15 | option: {}
|
16 | }, // 压缩
|
17 | // html
|
18 | html: {
|
19 |
|
20 | },
|
21 | // 变量
|
22 | variable: {
|
23 | flags: {
|
24 |
|
25 | },
|
26 | constant: {
|
27 |
|
28 | }
|
29 | },
|
30 |
|
31 | // 手动的去改变webpack配置
|
32 | extend: function(config) {
|
33 |
|
34 | },
|
35 | },
|
36 | end: {
|
37 |
|
38 | }
|
39 | }
|
40 | }
|
41 | } |
\ | No newline at end of file |