File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
"private" : true ,
6
6
"scripts" : {
7
7
"postinstall" : " yarn typegen" ,
8
- "build" : " NODE_ENV=production webpack build --config=webpack.prod.ts " ,
8
+ "build" : " NODE_ENV=production yarn vite build " ,
9
9
"build:analyze" : " NODE_ENV=production webpack --profile --progress --json --config=webpack.prod.ts > out/stats.json && webpack-bundle-analyzer out/stats.json out" ,
10
10
"check:all" : " yarn format:check && yarn lint && yarn test" ,
11
11
"chromatic" : " chromatic" ,
Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ export default defineConfig({
7
7
publicDir : path . resolve ( __dirname , "./static" ) ,
8
8
build : {
9
9
outDir : path . resolve ( __dirname , "./out" ) ,
10
+ // We need to keep the /bin folder and GITKEEP files
11
+ emptyOutDir : false ,
10
12
} ,
11
13
define : {
12
- "process.env" : process . env ,
14
+ "process.env" : {
15
+ NODE_ENV : process . env . NODE_ENV ,
16
+ } ,
13
17
} ,
14
18
server : {
15
19
port : process . env . PORT ? Number ( process . env . PORT ) : 8080 ,
You can’t perform that action at this time.
0 commit comments