diff --git a/devServer.js b/devServer.js index 3a31401..a2e9c6e 100644 --- a/devServer.js +++ b/devServer.js @@ -8,7 +8,7 @@ var compiler = webpack(config); app.use(require('webpack-dev-middleware')(compiler, { noInfo: true, - publicPath: config.output.publicPath + publicPath: '/' + config.output.publicPath })); app.use(require('webpack-hot-middleware')(compiler)); diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 1f3e0e4..27eaaa8 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -12,7 +12,7 @@ module.exports = { output: { path: path.join(__dirname, 'example/build'), filename: 'app.js', - publicPath: '/build/' + publicPath: 'build/' }, plugins: [ new webpack.HotModuleReplacementPlugin(), diff --git a/webpack.config.prod.js b/webpack.config.prod.js index f2d7484..8a277d1 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -17,7 +17,7 @@ module.exports = { output: { path: path.join(__dirname, 'example/build'), filename: 'app.js', - publicPath: '/build/' + publicPath: '../build/' }, plugins: [ new ExtractTextPlugin('app.css', { allChunks: true }), @@ -49,7 +49,7 @@ module.exports = { if_return: true, join_vars: true, cascade: true, - drop_console: true + drop_console: false }, output: { comments: false