Skip to content

Commit

Permalink
Update webpack-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
romainberger committed Mar 21, 2019
1 parent 503918a commit d4193e9
Show file tree
Hide file tree
Showing 4 changed files with 988 additions and 372 deletions.
6 changes: 4 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"license": "MIT",
"scripts": {
"build": "NODE_ENV=production webpack --progress --colors --display-error-details",
"dev": "BUILD=true webpack --progress --colors --display-error-details && node server.js"
"dev": "BUILD=true webpack --progress --colors --display-error-details && node server.js",
"start": "webpack-dev-server --config webpack.config.js --progress --colors"
},
"dependencies": {
"@babel/cli": "7.2.3",
Expand All @@ -28,6 +29,7 @@
"devDependencies": {
"babel-loader": "8.0.5",
"react-hot-loader": "next",
"webpack-dev-server": "^1.10.1"
"webpack-cli": "3.3.0",
"webpack-dev-server": "3.2.1"
}
}
15 changes: 0 additions & 15 deletions example/server.js

This file was deleted.

3 changes: 2 additions & 1 deletion example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ var config = {
},
devServer: {
compress: true,
contentBase: "./build",
historyApiFallback: true,
hot: true,
host: "127.0.0.1",
port: "3000",
publicPath: "/build/",
},
module: {
rules: [
Expand Down
Loading

0 comments on commit d4193e9

Please sign in to comment.