Skip to content

Commit

Permalink
perf: setup baseURL for built-in console in mog
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jan 22, 2023
1 parent 12a7d46 commit db15c3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"scripts": {
"dev": "vite --port 3000",
"build": "tsc && vite build",
"build:mog": "BUILD_MODE=BUILT_IN tsc && vite build",
"preview": "vite preview",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.tsx\"",
"lint": "eslint --ext .ts,.tsx --ignore-path .gitignore . --fix",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run build:mog",
"publish-release": "pnpm publish --access public",
"publish-next": "pnpm publish --access public --tag next"
},
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as path from "path";

// https://vitejs.dev/config/
export default defineConfig({
base: process.env.BUILD_MORE === "BUILT_IN" ? "/console" : "/",
plugins: [react()],
// alias
resolve: {
Expand Down

0 comments on commit db15c3b

Please sign in to comment.