Skip to content

Commit a427d5f

Browse files
Fix source map generation in projects that also use ExtractTextPlugin
1 parent e0c18ab commit a427d5f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

templates/Angular2Spa/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var clientBundleConfig = merge(sharedConfig, {
3535
].concat(isDevBuild ? [
3636
// Plugins that apply in development builds only
3737
new webpack.SourceMapDevToolPlugin({
38-
filename: '[name].js.map', // Remove this line if you prefer inline source maps
38+
filename: '[file].map', // Remove this line if you prefer inline source maps
3939
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
4040
})
4141
] : [

templates/KnockoutSpa/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
].concat(isDevBuild ? [
2929
// Plugins that apply in development builds only
3030
new webpack.SourceMapDevToolPlugin({
31-
filename: '[name].js.map', // Remove this line if you prefer inline source maps
31+
filename: '[file].map', // Remove this line if you prefer inline source maps
3232
moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
3333
})
3434
] : [

templates/ReactReduxSpa/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var clientBundleConfig = merge(sharedConfig(), {
4141
].concat(isDevBuild ? [
4242
// Plugins that apply in development builds only
4343
new webpack.SourceMapDevToolPlugin({
44-
filename: '[name].js.map', // Remove this line if you prefer inline source maps
44+
filename: '[file].map', // Remove this line if you prefer inline source maps
4545
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
4646
})
4747
] : [

templates/ReactSpa/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
].concat(isDevBuild ? [
3030
// Plugins that apply in development builds only
3131
new webpack.SourceMapDevToolPlugin({
32-
filename: '[name].js.map', // Remove this line if you prefer inline source maps
32+
filename: '[file].map', // Remove this line if you prefer inline source maps
3333
moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
3434
})
3535
] : [

templates/WebApplicationBasic/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
plugins: [
55
// Plugins that apply in development builds only
66
new webpack.SourceMapDevToolPlugin({
7-
filename: '[name].js.map', // Remove this line if you prefer inline source maps
7+
filename: '[file].map', // Remove this line if you prefer inline source maps
88
moduleFilenameTemplate: path.relative('./wwwroot/dist', '[resourcePath]') // Point sourcemap entries to the original file locations on disk
99
})
1010
]

templates/package-builder/src/yeoman/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-aspnetcore-spa",
3-
"version": "0.3.8",
3+
"version": "0.3.9",
44
"description": "Single-Page App templates for ASP.NET Core",
55
"author": "Microsoft",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)