Browse Source

Move public path to dev config

Alasdair Smith 8 years ago
parent
commit
dadd74e730
2 changed files with 4 additions and 1 deletions
  1. 4 0
      services/web/webpack.config.dev.js
  2. 0 1
      services/web/webpack.config.js

+ 4 - 0
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,

+ 0 - 1
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',