Fix source map generation in projects that also use ExtractTextPlugin

This commit is contained in:
SteveSandersonMS
2016-10-21 13:53:34 +01:00
parent e0c18ab269
commit a427d5f0f0
6 changed files with 6 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ var clientBundleConfig = merge(sharedConfig, {
].concat(isDevBuild ? [
// Plugins that apply in development builds only
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
})
] : [

View File

@@ -28,7 +28,7 @@ module.exports = {
].concat(isDevBuild ? [
// Plugins that apply in development builds only
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
})
] : [

View File

@@ -41,7 +41,7 @@ var clientBundleConfig = merge(sharedConfig(), {
].concat(isDevBuild ? [
// Plugins that apply in development builds only
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
})
] : [

View File

@@ -29,7 +29,7 @@ module.exports = {
].concat(isDevBuild ? [
// Plugins that apply in development builds only
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
})
] : [

View File

@@ -4,7 +4,7 @@ module.exports = {
plugins: [
// Plugins that apply in development builds only
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
})
]

View File

@@ -1,6 +1,6 @@
{
"name": "generator-aspnetcore-spa",
"version": "0.3.8",
"version": "0.3.9",
"description": "Single-Page App templates for ASP.NET Core",
"author": "Microsoft",
"license": "Apache-2.0",