forked from alexplumb/material-ui-phone-number
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.dev.js
More file actions
29 lines (28 loc) · 773 Bytes
/
webpack.config.dev.js
File metadata and controls
29 lines (28 loc) · 773 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 webpack = require('webpack');
const { merge } = require('webpack-merge');
const common = require('./webpack.config.common');
module.exports = merge(common, {
devtool: 'inline-source-map',
devServer: {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,POST,PUT,DELETE,PATCH,OPTIONS',
'Access-Control-Allow-Headers': 'content-type,authorization,accept',
},
port: 8181,
inline: true,
historyApiFallback: true,
clientLogLevel: 'none',
open: true,
contentBase: 'dist',
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('development'),
},
__DEV__: true,
}),
],
});