forked from OpenStackweb/openstacksignage
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
40 lines (36 loc) · 891 Bytes
/
webpack.dev.js
File metadata and controls
40 lines (36 loc) · 891 Bytes
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
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const path = require('path');
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
stats: {
warnings: false,
errors: true,
errorDetails: true
},
// ensure "manifest" exists because common injects ['manifest', entryName]
optimization: {
runtimeChunk: { name: 'manifest' },
splitChunks: { chunks: 'all' },
},
devServer: {
historyApiFallback: true,
static: { directory: path.resolve(__dirname, 'dist') },
open: true,
compress: true,
hot: true,
port: 8081,
allowedHosts: 'all',
client: {
overlay: {
warnings: false,
errors: true
},
logging: 'error',
},
},
plugins: [
// No need for HotModuleReplacementPlugin in Webpack 5 when devServer.hot=true
],
});