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")
|
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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user