1. 首页
  2. 移动开发
  3. 其他
  4. nuxt content git:@nuxtcontent的附加模块基于git历史记录替换或添加createdAt和updatedAt日期 源码

nuxt content git:@nuxtcontent的附加模块基于git历史记录替换或添加createdAt和updatedAt日期 源码

上传者: 2021-04-06 20:28:37上传 ZIP文件 255.18KB 热度 10次
nuxt-content-git @ nuxt / content的附加模块,基于git历史记录替换或添加createdAt和updatedAt日期。 安装 # npm $ npm install nuxt-content-git # Yarn $ yarn add nuxt-content-git 用法 将模块添加到@nuxt/content之前的nuxt.config.js文件中: export default { modules : [ 'nuxt-content-git' , '@nuxt/content' , } , } 这会将doc.createdAt和doc.updatedAt替换为Git日志中的日期。 也可以不覆盖这些值,而是指定如下字段名: export default { modules : [ [ 'nuxt-con
下载地址
用户评论