-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
46 lines (39 loc) · 900 Bytes
/
webpack.dev.config.js
File metadata and controls
46 lines (39 loc) · 900 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
41
42
43
44
45
46
const baseConfig = require('./webpack.base.conf');
const merge = require('webpack-merge');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(baseConfig, {
devtool: '#cheap-module-source-map',
devServer: {
// historyApiFallback: true,
// noInfo: true
overlay: {
warnings: true,
errors: true
},
stats: {
assets: true,
children: false,
chunks: false,
hash: false,
modules: false,
publicPath: false,
timings: true,
version: false,
warnings: true,
colors: {
green: '\u001b[32m',
}
}
},
output: {
chunkFilename: 'js/[name].js'
},
plugins: [
new webpack.NamedModulesPlugin(),
new HtmlWebpackPlugin({
template : './index.html',
cache : true
})
]
});