Make source maps compatible with VS/VSCode debugging (fix file paths, and strip out the "charset=utf-8;" segments from inline sourceMappingURLs)

This commit is contained in:
SteveSandersonMS
2016-10-11 16:11:12 +01:00
parent d20a72b812
commit 30a694450c
5 changed files with 25 additions and 8 deletions

View File

@@ -1,3 +1,7 @@
var SourceMapDevToolPlugin = require('aspnet-webpack').SourceMapDevToolPlugin;
module.exports = {
devtool: 'inline-source-map'
plugins: [
new SourceMapDevToolPlugin({ moduleFilenameTemplate: '../../[resourcePath]' }) // Compiled output is at './wwwroot/dist/', but sources are relative to './'
]
};