Skip to content

Commit

Permalink
Merge pull request #802 from benmccann/esm
Browse files Browse the repository at this point in the history
  • Loading branch information
waynzh committed Aug 9, 2023
2 parents a56f06f + 8f2dc38 commit f3b09cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"dev": "vitepress dev .",
"build": "node ./scripts/build.js && vitepress build .",
"build": "node ./scripts/build.mjs && vitepress build .",
"serve": "vitepress serve ."
},
"gitHooks": {
Expand Down
6 changes: 1 addition & 5 deletions scripts/build.js → scripts/build.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
const vitpress = require('vitepress')
const path = require('path')
const chalk = require('chalk')

/** 构建说明:
*
* 所有需要的构建步骤,都应封装为返回 Promise 的函数
* 保证不会因为任何异步操作导致构建错误或失败
* (若有顺序必要,则依次调用)
*/

const rewriteTitle = require('../.vitepress/rewrite-title')
import rewriteTitle from '../.vitepress/rewrite-title/index.js'

rewriteTitle().then(() => {})

1 comment on commit f3b09cf

@vercel
Copy link

@vercel vercel bot commented on f3b09cf Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cn-vitejs-dev – ./

cn-vitejs-dev-vuejs.vercel.app
cn-vitejs-dev-git-main-vuejs.vercel.app
docs-cn.vercel.app
cn.vitejs.dev

Please sign in to comment.