Skip to content

Commit

Permalink
setup webpack-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
santakadev committed Feb 13, 2019
1 parent 219751a commit e089b98
Show file tree
Hide file tree
Showing 3 changed files with 937 additions and 20 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"license": "MIT",
"scripts": {
"start": "webpack",
"start": "webpack-dev-server",
"build": "webpack",
"watch": "webpack --watch",
"test": "jest"
Expand All @@ -35,6 +35,7 @@
"hypercore": "^6.24.0",
"random-access-memory": "^3.1.1",
"signalhub": "^4.9.0",
"webpack-dev-server": "^3.1.14",
"webrtc-swarm": "^2.9.0"
}
}
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ module.exports = {
],
node: {
fs: 'empty'
},
devServer: {
port: 8000,
historyApiFallback: true
}
};

0 comments on commit e089b98

Please sign in to comment.