diff --git a/webpack.config.babel.js b/webpack.config.babel.js index d5b0186..0e43091 100644 --- a/webpack.config.babel.js +++ b/webpack.config.babel.js @@ -1,10 +1,14 @@ -import path from 'path'; + import path from 'path'; import webpack from 'webpack'; const config = { devServer: { hot: true, - inline: true + inline: true, + proxy: { + '/': 'http://localhost:8000/' + } + }, devtool: 'cheap-module-eval-source-map', entry: path.resolve(__dirname, 'app', 'main.js'), @@ -55,7 +59,8 @@ const config = { }, output: { filename: 'bundle.js', - path: path.resolve(__dirname, 'build', 'client') + path: path.resolve(__dirname, 'build', 'client'), + publicPath: "localhost:8080/dev-server/bundle.js" }, plugins: [ new webpack.optimize.OccurrenceOrderPlugin(),