File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [build ]
2+ command = " yarn demo:build"
3+ publish = " dist"
4+
5+ [build .environment ]
6+ NODE_VERSION = " 18"
Original file line number Diff line number Diff line change 1414 "build" : " vite build" ,
1515 "test" : " cypress run --component" ,
1616 "typecheck" : " tsc --noEmit" ,
17- "demo" : " vite --config vite.demo.config.ts"
17+ "demo" : " vite --config vite.demo.config.ts" ,
18+ "demo:build" : " vite build --config vite.demo.config.ts"
1819 },
1920 "dependencies" : {
2021 "@react-hook/media-query" : " ^1.1.1" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ import react from "@vitejs/plugin-react";
55export default defineConfig ( {
66 plugins : [ react ( ) ] ,
77 root : "demo" ,
8+ base : "./" ,
89 server : {
910 port : 3000 ,
1011 open : true ,
1112 } ,
13+ build : {
14+ outDir : "../dist" ,
15+ emptyOutDir : true ,
16+ } ,
1217} ) ;
You can’t perform that action at this time.
0 commit comments