优化打包

This commit is contained in:
dengtongyu committed 2018-11-14 10:56:31 +08:00
1 parent 463b06c550
commit b7c0e5e2ac
1 file changed
+3 -1
+3 -1
View File
@@ -47,7 +47,8 @@ exports.run = (paths, command) => {
_webpackConfig.plugins.push( _webpackConfig.plugins.push(
new HtmlWebPackPlugin({ new HtmlWebPackPlugin({
template: path.join(paths.targetPath, 'src', 'index.html'), 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('打包编译完成!'));
console.log(chalk.bold.green('输出目录:' + path.join(paths.targetPath, "dist")));
}); });
} }
} }