Skip to content

Commit

Permalink
move port config to vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Nov 13, 2023
1 parent 8fc1824 commit dcabe6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"scripts": {
"serve": "vite",
"preview": "vite build && vite preview --port 8080",
"preview": "vite build && vite preview",
"build": "ts-node --project ./build/tsconfig.json ./build/build.ts",
"build:website": "vite build",
"postbuild": "pnpm pack --pack-destination ..",
Expand Down
3 changes: 3 additions & 0 deletions packages/x-components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default defineConfig({
server: {
port: 8080
},
preview: {
port: 8080
},
optimizeDeps: {
exclude: ['@empathyco/x-components']
}
Expand Down

0 comments on commit dcabe6d

Please sign in to comment.