Skip to content

Commit 5ff778d

Browse files
committed
ci: add .env.pages
1 parent 01affbe commit 5ff778d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/sites/env/.env.pages

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 1、声明一个变量
2+
VITE_CONTEXT=/tiny-vue/
3+
VITE_BUILD_TARGET='inner'
4+
# 官网应用类型:pc / mobile / mobile-first
5+
VITE_APP_MODE='pc'
6+
7+
VITE_APP_BUILD_BASE_URL='/tiny-vue/'
8+
VITE_PLAYGROUND_URL=/playground.html

examples/sites/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:saas:alpha": "vite build --mode innersaas",
1515
"build:saas:open": "vite build --mode saasopen",
1616
"build:saas:prod": "vite build --mode saasprod",
17-
"build": "vite build",
17+
"build": "vite build --mode pages",
1818
"build:open": "vite build --mode open",
1919
"prettier": "npx prettier --write ./**/*.{ts,tsx,css,less,scss,vue}",
2020
"stylelint": "npx stylelint ./src/**/*.scss ./src/**/*.less ./src/**/*.css --fix",

0 commit comments

Comments
 (0)