UNPKG

1.06 kBJavaScriptView Raw
1'use strict';
2const baseDir = process.cwd();
3
4exports.base = {
5 config: {
6 baseDir,
7 port:9000,
8 buildPath: 'dist',
9 publicPath: '/',
10 hashLength: 8,
11 alias: {},
12 packs: {},
13 cdn: {},
14 install:{
15 check: false
16 },
17 postcss: true,
18 compile:{
19 cache: true,
20 thread: true
21 },
22 node: {
23 console: false,
24 Buffer: false,
25 setImmediate: false
26 }
27 },
28 loaders: {},
29 plugins: {}
30};
31
32exports.dev = {
33 config: {
34 hash: false,
35 node: {
36 console: true
37 }
38 },
39 plugins:[{
40 hot: true,
41 }]
42};
43
44exports.test = {
45 config: {
46 hash: true,
47 },
48 plugins:[{
49 hot: false,
50 }]
51};
52
53exports.prod = {
54 config: {
55 hash: true,
56 },
57 plugins:{
58 hot: false,
59 }
60};
61
62exports.dll = {
63 loaders: {
64 eslint: false,
65 scss: false,
66 sass: false,
67 less: false,
68 stylus: false
69 },
70 plugins: {
71 extract: false,
72 html: false,
73 runtime: false,
74 commonsChunk: false,
75 imagemini: false,
76 manifest: false,
77 manifestDll: true,
78 tsChecker: false
79 }
80};
\No newline at end of file