-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-config.js
54 lines (46 loc) · 1.46 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
module.exports = {
base: {
// Excludes folders relative to `root` directory.
exclude: [
'html',
'html-starter',
'html-demo',
'dist',
'build',
'assets',
'tasks',
'node_modules',
'_temp',
'node-script'
]
},
development: {
// Build path can be both relative or absolute.
// Current dist path is `./assets/vendor` which will be used by templates from `html\` directory. Set distPath: './dist' to generate assets in dist folder.
distPath: './wwwroot',
// Minify assets.
minify: false,
// Generate sourcemaps.
sourcemaps: false,
// https://webpack.js.org/configuration/devtool/#development
devtool: 'eval-source-map',
// Remove sourcemaps, *.dist.js and *.dist.css files before build
cleanDist: true,
fastDev: true
},
production: {
// Build path can be both relative or absolute.
// Current dist path is `./assets/vendor` which will be used by templates from `html\` directory. Set distPath: './dist' to generate assets in dist folder.
distPath: './wwwroot',
// Minify assets.
// Note: Webpack will minify js sources in production mode regardless to this option
minify: true,
// Generate sourcemaps.
sourcemaps: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
// Remove sourcemaps, *.dist.js and *.dist.css files before build
cleanDist: true,
fastDev: false
}
};