chore(#2483) make client-side code debuggable right from the source code (#2484)

This commit is contained in:
Woonchan Cho authored and GitHub committed 2021-07-26 13:34:55 +02:00
1 parent 2afcd498f3
commit bad67020cc
2 files changed
+22

No files matched your search

+7
View File
@@ -41,6 +41,13 @@ module.exports = (env, argv) => {
path: DIST_DIR,
filename: isProdBuild ? '[name].bundle.[chunkhash].js' : '[name].js',
publicPath: PUBLIC_URL, // Used by HtmlWebPackPlugin for asset prefix
devtoolModuleFilenameTemplate: function(info) {
if (isProdBuild) {
return `webpack:///${info.resourcePath}`;
} else {
return 'file:///' + encodeURI(info.absoluteResourcePath);
}
},
},
module: {
rules: [...extractStyleChunksRule(isProdBuild)],