优化打包
This commit is contained in:
1 parent
463b06c550
commit
b7c0e5e2ac
1 file changed
+3
-1
@@ -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")));
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user