forked from graphhopper/graphhopper-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
29 lines (25 loc) · 681 Bytes
/
Copy pathwebpack.dev.js
File metadata and controls
29 lines (25 loc) · 681 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
const { mergeWithRules, CustomizeRule } = require('webpack-merge')
const path = require('path')
const common = require('./webpack.common.js')
const develop = {
mode: 'development',
devtool: 'source-map',
devServer: {
static: path.resolve(__dirname, 'dist'),
port: 3000,
host: '0.0.0.0',
},
}
const mergePattern = {
module: {
rules: {
test: CustomizeRule.Match,
exclude: CustomizeRule.Match,
use: {
loader: CustomizeRule.Match,
options: CustomizeRule.Replace,
},
},
},
}
module.exports = mergeWithRules(mergePattern)(common, develop)