-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbuild-config.js
More file actions
executable file
·35 lines (29 loc) · 1.09 KB
/
build-config.js
File metadata and controls
executable file
·35 lines (29 loc) · 1.09 KB
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
module.exports = {
base: {
// Excludes folders relative to `root` directory.
exclude: ['node_modules', 'fonts']
},
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'
},
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'
}
};