produce source maps

pull/43/head
Alexander Bentkamp 2 years ago
parent 796ebfeaab
commit 2f465b37c7

@ -44,6 +44,7 @@ module.exports = env => {
output: { output: {
path: path.resolve(__dirname, "client/dist/"), path: path.resolve(__dirname, "client/dist/"),
filename: "bundle.js", filename: "bundle.js",
sourceMapFilename: "[name].js.map"
}, },
devServer: { devServer: {
proxy: { proxy: {
@ -56,6 +57,7 @@ module.exports = env => {
port: 3000, port: 3000,
hot: true, hot: true,
}, },
devtool: "source-map",
plugins: [ plugins: [
!isDevelopment && new WebpackShellPluginNext({ !isDevelopment && new WebpackShellPluginNext({
onBuildEnd:{ onBuildEnd:{
@ -69,4 +71,4 @@ module.exports = env => {
isDevelopment && new ReactRefreshWebpackPlugin() isDevelopment && new ReactRefreshWebpackPlugin()
].filter(Boolean), ].filter(Boolean),
}; };
} }

Loading…
Cancel
Save