-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.settings.dist.js
42 lines (37 loc) · 1007 Bytes
/
webpack.settings.dist.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
export default {
// Basic settings
sourceDir: 'src',
destinationDir: 'dist',
moduleDir: 'node_modules',
// Hot mode settings
/**
* If you edit this variable, change relative path in "<theme>.libraries.yml" on 'hot' array.
*/
hotPublicPath: '/',
devServer: {
/**
* This option allows you to whitelist services that are allowed to access the dev server.
* https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
*
* 'auto' | 'all' [string]
*/
allowedHosts: 'all',
/**
* https://webpack.js.org/configuration/dev-server/#devserverclient
*/
client: {
logging: 'info', // 'log' | 'info' | 'warn' | 'error' | 'none' | 'verbose'
overlay: true,
progress: true,
reconnect: true,
},
/**
* https://webpack.js.org/configuration/dev-server/#devserverhttps
*/
https: false,
/**
* https://webpack.js.org/configuration/dev-server/#devserverport
*/
port: 8080,
}
};