Merge pull request #2078 from msamad/webpack-sourcemap-path

Fix webpack sourcemap path for debugging
This commit is contained in:
Fredrik Adelöw
2020-08-22 09:17:19 +02:00
committed by GitHub
+5
View File
@@ -198,6 +198,11 @@ export function createBackendConfig(
chunkFilename: isDev
? '[name].chunk.js'
: '[name].[chunkhash:8].chunk.js',
...(isDev
? {
devtoolModuleFilenameTemplate: 'file:///[absolute-resource-path]',
}
: {}),
},
plugins: [
new StartServerPlugin('main.js'),