From dadd74e73084ab49eebcd1b46ac90ab5a808ffef Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Fri, 12 Jan 2018 12:30:20 +0000 Subject: [PATCH] Move public path to dev config --- services/web/webpack.config.dev.js | 4 ++++ services/web/webpack.config.js | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/webpack.config.dev.js b/services/web/webpack.config.dev.js index 316f0d15f8..e9da2b3767 100644 --- a/services/web/webpack.config.dev.js +++ b/services/web/webpack.config.dev.js @@ -6,6 +6,10 @@ module.exports = merge(base, { // Enable source maps for dev (fast compilation, slow runtime) devtool: 'cheap-module-eval-source-map', + output: { + publicPath: '/public/js/frontend/' + }, + devServer: { // Disable webpack dev server auto-reload inline: false, diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 13b77bcacc..46602c702d 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -12,7 +12,6 @@ module.exports = { // kept in memory for speed output: { path: path.join(__dirname, '/public/js/frontend'), - // publicPath: '/frontend/', filename: '[name].js',