From b7c0e5e2ace0b5a33bef497f5e4db715639ebf9f Mon Sep 17 00:00:00 2001 From: dengtongyu Date: Wed, 14 Nov 2018 10:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task/webpack.react.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/task/webpack.react.js b/task/webpack.react.js index e17a7f2..1973ab2 100644 --- a/task/webpack.react.js +++ b/task/webpack.react.js @@ -47,7 +47,8 @@ exports.run = (paths, command) => { _webpackConfig.plugins.push( new HtmlWebPackPlugin({ template: path.join(paths.targetPath, 'src', 'index.html'), - filename: path.join(paths.targetPath, 'dist', 'index.html') + filename: path.join(paths.targetPath, 'dist', 'index.html'), + hash:true }) ); @@ -106,6 +107,7 @@ exports.run = (paths, command) => { //处理完成 console.log(chalk.bold.green('打包编译完成!')); + console.log(chalk.bold.green('输出目录:' + path.join(paths.targetPath, "dist"))); }); } } \ No newline at end of file