Skip to content

Commit 863e4c5

Browse files
committed
Use devtool: eval for speed and reload on change
1 parent 47c97b2 commit 863e4c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webpack.config.dev.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ var webpack = require('webpack');
44
var HtmlWebpackPlugin = require('html-webpack-plugin');
55

66
module.exports = {
7-
devtool: 'source-map',
8-
entry: './src/index.js',
7+
devtool: 'eval',
8+
entry: [
9+
'./src/index.js',
10+
'webpack-dev-server/client?http://localhost:3000'
11+
],
912
output: {
1013
// Next line is not used in dev but WebpackDevServer crashes without it:
1114
path: path.join(__dirname, 'build'),

0 commit comments

Comments
 (0)