-
Notifications
You must be signed in to change notification settings - Fork 14
/
build-config.js
executable file
·66 lines (55 loc) · 1.89 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
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
base: {
// Excludes folders relative to `root` directory.
exclude: [
'html',
'html-starter',
'html-demo',
'dist',
'build',
'assets',
'tasks',
'node_modules',
'_temp',
'node-script'
],
// Base Path to Serve from using Browser Sync, Currently set to root of the project
// You can also point to specific folder like 'build/'
serverPath: './',
// Template/Folder to build for production
buildTemplatePath: 'html',
// Folder for production build
buildPath: './build'
},
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: './assets/vendor',
// Minify assets.
minify: false,
// Generate sourcemaps.
sourcemaps: false,
// https://webpack.js.org/configuration/devtool/#development
devtool: 'eval-source-map',
// Use this option with caution because it will remove entire output directory.
// Will affect only and `build` command
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: './assets/vendor',
// 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',
// Use this option with caution because it will remove entire output directory.
// Will affect only `build:prod` command
cleanDist: true,
fastDev: false
}
};