Skip to content

Commit

Permalink
Webpack improvements
Browse files Browse the repository at this point in the history
* Bind server to 0.0.0.0 so it can be accessed from domain URL.
* Generate source maps.
  • Loading branch information
caseycesari committed May 24, 2016
1 parent 611ee05 commit 432b28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"bundle": "webpack",
"start": "webpack-dev-server --inline --hot --content-base src --progress --colors",
"start": "webpack-dev-server --host 0.0.0.0 --inline --hot --content-base src --progress --colors",
"lint": "./node_modules/.bin/eslint src/js"
},
"author": "Casey Thomas",
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
filename: 'bundle.js',
publicPath: '/static/',
},
devtool: 'source-map',
module: {
loaders: [{
test: /\.js?$/,
Expand Down

0 comments on commit 432b28a

Please sign in to comment.