Skip to content

Commit

Permalink
fix: fix sites vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyhehe committed Jan 22, 2025
1 parent 19d78fa commit 855e782
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/sites/env/.env.mobilepages
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 1、声明一个变量
VITE_CONTEXT=/tiny-vue/
VITE_BUILD_TARGET='inner'
# 官网应用类型:pc / mobile / mobile-first
VITE_APP_MODE='mobile'

VITE_APP_BUILD_BASE_URL='/tiny-vue/'
VITE_PLAYGROUND_URL=/playground.html
VITE_MOBILE_URL=/mobile.html
1 change: 1 addition & 0 deletions examples/sites/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build:saas:open": "vite build --mode saasopen",
"build:saas:prod": "vite build --mode saasprod",
"build": "vite build --mode pages && cp cp-component-md.sh ./dist",
"build:mobile:page": "vite build --mode mobilepages && cp cp-component-md.sh ./dist",
"build:visualizer": "vite build --mode visualizer",
"build:open": "vite build --mode open",
"prettier": "npx prettier --write ./**/*.{ts,tsx,css,less,scss,vue}",
Expand Down

0 comments on commit 855e782

Please sign in to comment.