Trying to fix webpack config

This commit is contained in:
Karma Riuk 2022-10-26 22:39:54 +02:00
parent 9728321bf8
commit de07c92579

View File

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