Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lerna-debug.log*

node_modules
dist
site
dist-ssr
*.local

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
},
"scripts": {
"dev": "vite",
"build": "vite build && vue-tsc --emitDeclarationOnly --project tsconfig.dist.json && mv dist/lib dist/types && rm -rf dist/favicon.ico",
"build": "vite build && vue-tsc --emitDeclarationOnly --project tsconfig.dist.json && mv dist/lib dist/types",
"build:site": "vue-tsc --noEmit --project tsconfig.site.json && vite --config vite.site.config.ts build",
"preview": "vite preview",
"preview": "vite preview --config vite.site.config.ts",
"lint": "yarn prettier --write '**/*.{ts,vue,json}'"
},
"types": "./dist/types/main.d.ts",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as path from "path";

// https://vitejs.dev/config/
export default defineConfig({
publicDir: false,
plugins: [vue()],
resolve: {
dedupe: ["vue"],
Expand Down
6 changes: 6 additions & 0 deletions vite.site.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
build: {
outDir: "site",
},
preview: {
port: 3000,
},
});