From dd97ae7316a3f85cda832eee19064d8b89e10993 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Mon, 28 Nov 2016 16:55:53 +0000 Subject: [PATCH] Specify publicPath in all vendor build configs (otherwise, file-loader won't generate correct URLs to any static resources from the vendor bundle) --- templates/Angular2Spa/webpack.config.vendor.js | 1 + templates/AureliaSpa/webpack.config.vendor.js | 1 + templates/KnockoutSpa/webpack.config.vendor.js | 1 + templates/ReactReduxSpa/webpack.config.vendor.js | 1 + templates/ReactSpa/webpack.config.vendor.js | 1 + 5 files changed, 5 insertions(+) diff --git a/templates/Angular2Spa/webpack.config.vendor.js b/templates/Angular2Spa/webpack.config.vendor.js index bd37fb7261..76bd4aee13 100644 --- a/templates/Angular2Spa/webpack.config.vendor.js +++ b/templates/Angular2Spa/webpack.config.vendor.js @@ -37,6 +37,7 @@ module.exports = { }, output: { path: path.join(__dirname, 'wwwroot', 'dist'), + publicPath: '/dist/', filename: '[name].js', library: '[name]_[hash]', }, diff --git a/templates/AureliaSpa/webpack.config.vendor.js b/templates/AureliaSpa/webpack.config.vendor.js index 26758ebdea..da293bb6b0 100644 --- a/templates/AureliaSpa/webpack.config.vendor.js +++ b/templates/AureliaSpa/webpack.config.vendor.js @@ -35,6 +35,7 @@ module.exports = { }, output: { path: path.join(__dirname, 'wwwroot', 'dist'), + publicPath: '/dist/', filename: '[name].js', library: '[name]_[hash]', }, diff --git a/templates/KnockoutSpa/webpack.config.vendor.js b/templates/KnockoutSpa/webpack.config.vendor.js index c6902cb017..a75914806c 100644 --- a/templates/KnockoutSpa/webpack.config.vendor.js +++ b/templates/KnockoutSpa/webpack.config.vendor.js @@ -19,6 +19,7 @@ module.exports = { }, output: { path: path.join(__dirname, 'wwwroot', 'dist'), + publicPath: '/dist/', filename: '[name].js', library: '[name]_[hash]', }, diff --git a/templates/ReactReduxSpa/webpack.config.vendor.js b/templates/ReactReduxSpa/webpack.config.vendor.js index 3c0f24d969..8f4361f3c0 100644 --- a/templates/ReactReduxSpa/webpack.config.vendor.js +++ b/templates/ReactReduxSpa/webpack.config.vendor.js @@ -19,6 +19,7 @@ module.exports = { }, output: { path: path.join(__dirname, 'wwwroot', 'dist'), + publicPath: '/dist/', filename: '[name].js', library: '[name]_[hash]', }, diff --git a/templates/ReactSpa/webpack.config.vendor.js b/templates/ReactSpa/webpack.config.vendor.js index 854a2ca3b1..f982222690 100644 --- a/templates/ReactSpa/webpack.config.vendor.js +++ b/templates/ReactSpa/webpack.config.vendor.js @@ -19,6 +19,7 @@ module.exports = { }, output: { path: path.join(__dirname, 'wwwroot', 'dist'), + publicPath: '/dist/', filename: '[name].js', library: '[name]_[hash]', },