1.0.2 • Published 4 years ago

@qinyuanqiu/update-statics-version v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

静态资源路径版本号更新

  1. 安装
npm install @qinyuanqiu/update-statics-version -D
  1. 在package.json中配置命令行

    // package.json
    "scripts": {
    	"[order]": "update-version temp=[tempPath] statics=[staticsPath]"
    },

    tempPath是需要更新的所有模板的目录,staticsPath是静态资源存储的目录

  2. 运行npm run order

  3. 可在运行目录下添加ignore-version-file.json文件,设置需要忽略的模板文件
    // ignore-version-file.json
    [
    	"node_moudules"
    ]