website: modify output filename

This commit is contained in:
infeng 2019-10-22 15:58:39 +08:00
parent 59aaa95068
commit 2f6cf11d8a

View File

@ -10,6 +10,7 @@ if (fs.existsSync(distPath)) {
config.entry('index').clear().add('./demo/index.tsx');
config.output.path(distPath);
config.output.filename('index.[contenthash].js');
config.mode('production');
config.plugin('html-webpack-plugin')
.use(HtmlWebpackPlugin, [{