vue-build-version

1.0.2 • Public • Published

使用方法

  1. 安装 vue-build-version:
    npm install vue-build-version -D
  1. 修改 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"));
    ...
  1. 执行npm run build && 查看dist下 version.html

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i vue-build-version

    Weekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    1.56 kB

    Total Files

    3

    Last publish

    Collaborators

    • huqiliang