Fix webpack sourcemap path for debugging

This commit is contained in:
Mustansar Anwar ul Samad
2020-08-22 10:04:17 +12:00
parent 9414db5ee7
commit d224f9bba7
+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'),