Trying to fix webpack config
This commit is contained in:
parent
9728321bf8
commit
de07c92579
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user