Skip to content

Commit

Permalink
Merge pull request #2286 from manyfold3d/minify-js
Browse files Browse the repository at this point in the history
Reduce javascript payload with tree-shaking
  • Loading branch information
Floppy authored Jun 19, 2024
2 parents 97eff1b + ed107d6 commit ac82174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"lint:ts": "ts-standard --fix",
"build": "bundle exec i18n export --config=./config/i18n-js.yml && esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=assets",
"build": "bundle exec i18n export --config=./config/i18n-js.yml && esbuild app/javascript/*.* --minify=true --tree-shaking=true --bundle --sourcemap --outdir=app/assets/builds --public-path=assets",
"build:css": "sass ./app/assets/stylesheets/application.bootstrap.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules",
"typecheck": "bundle exec i18n export --config=./config/i18n-js.yml && tsc --project tsconfig.json"
},
Expand Down

0 comments on commit ac82174

Please sign in to comment.