produce source maps
This commit is contained in:
+3
-1
@@ -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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user