Skip to content

Commit

Permalink
Vite build optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
aldwin7894 committed Feb 7, 2023
1 parent 7101f86 commit 1be834c
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ GEM
parser (>= 3.1.1.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.15.2)
rubocop-performance (1.16.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.17.4)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"edge >= 88"
],
"devDependencies": {
"@types/node": "^18.11.18",
"@typescript-eslint/parser": "^5.50.0",
"@types/node": "^18.13.0",
"@typescript-eslint/parser": "^5.51.0",
"eslint": "^8.33.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.6.0",
Expand Down
10 changes: 10 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,15 @@ export default defineConfig({
compact: true,
},
},
terserOptions: {
compress: {
defaults: true,
drop_console: true,
ecma: 2021,
},
format: {
comments: false,
},
},
},
});
64 changes: 32 additions & 32 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1be834c

Please sign in to comment.