From 432b28ad362262d5699eb86c9206606c51868d9e Mon Sep 17 00:00:00 2001 From: Casey Thomas Date: Tue, 24 May 2016 13:17:03 -0400 Subject: [PATCH] Webpack improvements * Bind server to 0.0.0.0 so it can be accessed from domain URL. * Generate source maps. --- package.json | 2 +- webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4070168..1e809c6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index 7770196..a9264f8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,6 +5,7 @@ module.exports = { filename: 'bundle.js', publicPath: '/static/', }, + devtool: 'source-map', module: { loaders: [{ test: /\.js?$/,