old_contents: const webpackConfig = require('./webpack.config');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const CleanWebpackPlugin = require('clean-webpack-plugin');
  var originalConfig = webpackConfig({});
  
  module.exports = () => {
    let config = originalConfig;
    // output files without hashes
    config.output.filename = '[name].bundle.js';
    config.plugins.splice(config.plugins.indexOf(HtmlWebpackPlugin));
    config.plugins = [
      // first clean the output directory
      new CleanWebpackPlugin([config.output.path]),
      ...config.plugins
    ];
  
    return config;
  };
  
new_contents: const webpackConfig = require('./webpack.config');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const CleanWebpackPlugin = require('clean-webpack-plugin');
  const project = require('./aurelia_project/aurelia.json');
  var originalConfig = webpackConfig({});
  
  module.exports = () => {
    let config = originalConfig;
    // output files without hashes
    config.output.filename = '[name].bundle.js';
    config.plugins.splice(config.plugins.indexOf(HtmlWebpackPlugin));
    // fix output path for .net core development
    config.module.rules = config.module.rules.map(x => {
      if (x.loader && (x.loader === 'url-loader' || x.loader === 'file-loader')) {
        if (!x.options) {
          x.options = {};
        }
        x.options.publicPath = project.platform.output.replace('wwwroot', '') + '/';
      }
      return x;
    });
    config.plugins = [
      // first clean the output directory
      new CleanWebpackPlugin([config.output.path]),
      ...config.plugins
    ];
  
    return config;
  };
  
subject: update configuration to set public path for static resources The webpack build moves files into the /dist/ folder and resources are loaded from the root '/' publicPath This adds a change to the webpack.netcore.config.js file that customizes webpack to work with javascript services by adding the publicPath to the url and file loaders.