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