Skip to content

Commit

Permalink
feat: 在线分享第一版-完善打包流程
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jun 16, 2023
1 parent 2c61209 commit 373af11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ echo "Nuxt build finished."
pnpm pluginBuild
echo "Plugin build finished."

# 拷贝资源
# rsync -av --progress .output/public/ ./dist/
rsync -av .output/public/ ./dist/
echo "Resources are copied."

# 使用 `sed` 命令替换内容
find ./dist/_nuxt -type f -name 'entry.*.js' -exec \
sed -i '' -E 's/\/__i18n__\/prerender/\/plugins\/siyuan-blog\/__i18n__\/prerender/g' {} \;
Expand Down
5 changes: 5 additions & 0 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ echo "Nuxt build finished."
pnpm pluginBuild
echo "Plugin build finished."

# 拷贝资源
# rsync -av --progress .output/public/ ./dist/
rsync -av .output/public/ ./dist/
echo "Resources are copied."

## 使用 `sed` 命令替换内容
find ./dist/_nuxt -type f -name 'entry.*.js' -exec \
sed -i '' -E 's/\/__i18n__\/prerender/\/plugins\/siyuan-blog\/__i18n__\/prerender/g' {} \;
Expand Down

0 comments on commit 373af11

Please sign in to comment.