Fix source map generation in projects that also use ExtractTextPlugin
This commit is contained in:
parent
e0c18ab269
commit
a427d5f0f0
|
|
@ -35,7 +35,7 @@ var clientBundleConfig = merge(sharedConfig, {
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// Plugins that apply in development builds only
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map', // Remove this line if you prefer inline source maps
|
filename: '[file].map', // Remove this line if you prefer inline source maps
|
||||||
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
||||||
})
|
})
|
||||||
] : [
|
] : [
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ module.exports = {
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// Plugins that apply in development builds only
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map', // Remove this line if you prefer inline source maps
|
filename: '[file].map', // Remove this line if you prefer inline source maps
|
||||||
moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
||||||
})
|
})
|
||||||
] : [
|
] : [
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ var clientBundleConfig = merge(sharedConfig(), {
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// Plugins that apply in development builds only
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map', // Remove this line if you prefer inline source maps
|
filename: '[file].map', // Remove this line if you prefer inline source maps
|
||||||
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
||||||
})
|
})
|
||||||
] : [
|
] : [
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ module.exports = {
|
||||||
].concat(isDevBuild ? [
|
].concat(isDevBuild ? [
|
||||||
// Plugins that apply in development builds only
|
// Plugins that apply in development builds only
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map', // Remove this line if you prefer inline source maps
|
filename: '[file].map', // Remove this line if you prefer inline source maps
|
||||||
moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
||||||
})
|
})
|
||||||
] : [
|
] : [
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
// Plugins that apply in development builds only
|
// Plugins that apply in development builds only
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map', // Remove this line if you prefer inline source maps
|
filename: '[file].map', // Remove this line if you prefer inline source maps
|
||||||
moduleFilenameTemplate: path.relative('./wwwroot/dist', '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
moduleFilenameTemplate: path.relative('./wwwroot/dist', '[resourcePath]') // Point sourcemap entries to the original file locations on disk
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "generator-aspnetcore-spa",
|
"name": "generator-aspnetcore-spa",
|
||||||
"version": "0.3.8",
|
"version": "0.3.9",
|
||||||
"description": "Single-Page App templates for ASP.NET Core",
|
"description": "Single-Page App templates for ASP.NET Core",
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue