UNPKG

1.23 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 cssExtract: false,
36 node: {
37 console: true
38 }
39 },
40 plugins:[{
41 hot: true,
42 }]
43};
44
45exports.test = {
46 config: {
47 hash: true,
48 cssExtract: true,
49 },
50 plugins:[{
51 hot: false,
52 }]
53};
54
55exports.prod = {
56 config: {
57 hash: true,
58 cssExtract: true
59 },
60 loaders: {
61 css: {
62 options: {
63 minimize: true
64 }
65 }
66 },
67 plugins:{
68 hot: false,
69 }
70};
71
72exports.dll = {
73 config: {
74 cssExtract: false,
75 },
76 loaders: {
77 eslint: false,
78 scss: false,
79 sass: false,
80 less: false,
81 stylus: false
82 },
83 plugins: {
84 html: false,
85 runtime: false,
86 commonsChunk: false,
87 imagemini: false,
88 manifest: false,
89 manifestDll: true,
90 tsChecker: false
91 }
92};
\No newline at end of file