mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Specify publicPath in all vendor build configs (otherwise, file-loader won't generate correct URLs to any static resources from the vendor bundle)
This commit is contained in:
@@ -37,6 +37,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'wwwroot', 'dist'),
|
path: path.join(__dirname, 'wwwroot', 'dist'),
|
||||||
|
publicPath: '/dist/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
library: '[name]_[hash]',
|
library: '[name]_[hash]',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'wwwroot', 'dist'),
|
path: path.join(__dirname, 'wwwroot', 'dist'),
|
||||||
|
publicPath: '/dist/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
library: '[name]_[hash]',
|
library: '[name]_[hash]',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'wwwroot', 'dist'),
|
path: path.join(__dirname, 'wwwroot', 'dist'),
|
||||||
|
publicPath: '/dist/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
library: '[name]_[hash]',
|
library: '[name]_[hash]',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'wwwroot', 'dist'),
|
path: path.join(__dirname, 'wwwroot', 'dist'),
|
||||||
|
publicPath: '/dist/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
library: '[name]_[hash]',
|
library: '[name]_[hash]',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'wwwroot', 'dist'),
|
path: path.join(__dirname, 'wwwroot', 'dist'),
|
||||||
|
publicPath: '/dist/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
library: '[name]_[hash]',
|
library: '[name]_[hash]',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user