-
-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
38 lines (32 loc) · 827 Bytes
/
webpack.dev.config.js
File metadata and controls
38 lines (32 loc) · 827 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
/* eslint-disable import/no-extraneous-dependencies */
const { merge } = require('webpack-merge');
const webpackConfiguration = require('../webpack.config');
const environment = require('./environment');
module.exports = merge(webpackConfiguration, {
mode: 'development',
/* Manage source maps generation process */
devtool: 'eval-source-map',
/* Development Server Configuration */
devServer: {
static: {
directory: environment.paths.output,
publicPath: '/',
watch: true,
},
client: {
overlay: true,
},
open: true,
compress: true,
hot: false,
...environment.server,
},
/* File watcher options */
watchOptions: {
aggregateTimeout: 300,
poll: 300,
ignored: /node_modules/,
},
/* Additional plugins configuration */
plugins: [],
});