produce source maps

This commit is contained in:
Alexander Bentkamp
2022-10-21 11:06:59 +02:00
parent 796ebfeaab
commit 2f465b37c7
+3 -1
View File
@@ -44,6 +44,7 @@ module.exports = env => {
output: {
path: path.resolve(__dirname, "client/dist/"),
filename: "bundle.js",
sourceMapFilename: "[name].js.map"
},
devServer: {
proxy: {
@@ -56,6 +57,7 @@ module.exports = env => {
port: 3000,
hot: true,
},
devtool: "source-map",
plugins: [
!isDevelopment && new WebpackShellPluginNext({
onBuildEnd:{
@@ -69,4 +71,4 @@ module.exports = env => {
isDevelopment && new ReactRefreshWebpackPlugin()
].filter(Boolean),
};
}
}