exports.modifyWebpackConfig = function (config) {
  config.merge({
    output: {
      publicPath: '/', 
    },
  })

  config.loader('jpg', {
    test: /\.jpg$/,
    loader: 'url?limit=10000',
  })

  config.loader('png', {
    test: /\.png$/,
    loader: 'url?limit=10000',
  })

  config.loader('pug', {
    test: /\.pug$/,
    loader: 'pug',
  })

  return config
}

exports.modifyWebpackConfig = function (config) {
  config.loader('jpg', {
    test: /\.jpg$/,
    loader: 'url?limit=10000',
  })

  config.loader('png', {
    test: /\.png$/,
    loader: 'url?limit=10000',
  })

  config.loader('pug', {
    test: /\.pug$/,
    loader: 'pug',
  })

  return config
}

--- 
+++ 
@@ -1,4 +1,10 @@
 exports.modifyWebpackConfig = function (config) {
+  config.merge({
+    output: {
+      publicPath: '/', 
+    },
+  })
+
   config.loader('jpg', {
     test: /\.jpg$/,
     loader: 'url?limit=10000',
Fix public path in production build
