vue-build-version
v1.0.2
Published
vue-cli build version with git last tag
Downloads
4
Readme
使用方法
- 安装 vue-build-version:
npm install vue-build-version -D
- 修改 project/build/build.js
...
const webpackConfig = require("./webpack.prod.conf");
+ const buildVersion = require("vue-build-version");
...
if (stats.hasErrors()) {
console.log(chalk.red(" Build failed with errors.\n"));
process.exit(1);
}
+ buildVersion();
console.log(chalk.cyan(" Build complete.\n"));
...
- 执行
npm run build
&& 查看dist下 version.html