diff --git a/webpack.config.js b/webpack.config.js index 246eb2a..b29965e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,11 +12,11 @@ module.exports = (env, argv) => { bundle: path.resolve(__dirname, "src", "index.tsx") }, output: { - filename: "[name].[contenthash:10].js", + filename: devMode ? "[name].[contenthash:10].js" : "[name.js]", path: path.resolve(__dirname, "dist"), clean: true, publicPath: '/', - sourceMapFilename: "[name].js.map" + sourceMapFilename: "[name].[contenthash:10].js.map" }, devtool: "source-map", devServer: {