修改启动脚本

This commit is contained in:
ZtRXR 2023-08-30 16:12:19 +08:00
parent 2d7d88891c
commit 1659399f53
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"name": "nuxt-app",
"private": true,
"scripts": {
"build": "nuxt build && mv ./word.json ./.output/",
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",

View File

@ -9,6 +9,8 @@ npm i
# 3. 执行 npm run build
npm run build
cp ./word.json ./.output/
# 4. 切换到 ./.output 目录
cd ./.output