You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newwebpack.SourceMapDevToolPlugin({moduleFilenameTemplate: '../../[resourcePath]'})// Compiled output is at './wwwroot/dist/', but sources are relative to './'
37
+
newwebpack.SourceMapDevToolPlugin({
38
+
filename: '[name].js.map',// Remove this line if you prefer inline source maps
39
+
moduleFilenameTemplate: path.relative(clientBundleOutputDir,'[resourcePath]')// Point sourcemap entries to the original file locations on disk
newwebpack.SourceMapDevToolPlugin({moduleFilenameTemplate: '../../[resourcePath]'})// Compiled output is at './wwwroot/dist/', but sources are relative to './'
30
+
newwebpack.SourceMapDevToolPlugin({
31
+
filename: '[name].js.map',// Remove this line if you prefer inline source maps
32
+
moduleFilenameTemplate: path.relative(bundleOutputDir,'[resourcePath]')// Point sourcemap entries to the original file locations on disk
@@ -39,7 +40,10 @@ var clientBundleConfig = merge(sharedConfig(), {
39
40
})
40
41
].concat(isDevBuild ? [
41
42
// Plugins that apply in development builds only
42
-
newwebpack.SourceMapDevToolPlugin({moduleFilenameTemplate: '../../[resourcePath]'})// Compiled output is at './wwwroot/dist/', but sources are relative to './'
43
+
newwebpack.SourceMapDevToolPlugin({
44
+
filename: '[name].js.map',// Remove this line if you prefer inline source maps
45
+
moduleFilenameTemplate: path.relative(clientBundleOutputDir,'[resourcePath]')// Point sourcemap entries to the original file locations on disk
newwebpack.SourceMapDevToolPlugin({moduleFilenameTemplate: '../../[resourcePath]'})// Compiled output is at './wwwroot/dist/', but sources are relative to './'
31
+
newwebpack.SourceMapDevToolPlugin({
32
+
filename: '[name].js.map',// Remove this line if you prefer inline source maps
33
+
moduleFilenameTemplate: path.relative(bundleOutputDir,'[resourcePath]')// Point sourcemap entries to the original file locations on disk
Copy file name to clipboardExpand all lines: templates/WebApplicationBasic/webpack.config.dev.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@ var webpack = require('webpack');
2
2
3
3
module.exports={
4
4
plugins: [
5
-
newwebpack.SourceMapDevToolPlugin({moduleFilenameTemplate: '../../[resourcePath]'})// Compiled output is at './wwwroot/dist/', but sources are relative to './'
5
+
// Plugins that apply in development builds only
6
+
newwebpack.SourceMapDevToolPlugin({
7
+
filename: '[name].js.map',// Remove this line if you prefer inline source maps
8
+
moduleFilenameTemplate: path.relative('./wwwroot/dist','[resourcePath]')// Point sourcemap entries to the original file locations on disk
0 commit comments