question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App: minify build pass

See original GitHub issue

We should find a way to do a build process via Github Actions to ship our code minified.

It could be whatever packing solution, but note that our code is pure HTML5/ES6 import and we should keep it working like that on the dev env. I.e. no WDS.

The build process should merely bundle and minify app.js and change the index.html entry point or something. Source maps for production should work.

Note that some things technically would be hard to minify, like our geometry manager, which is a non-ES6 PhysX WASM loader script. I would leave that part unminified for now.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ChristopherTrimbolicommented, Feb 12, 2021

some progress in this PR here: https://github.com/webaverse/app/pull/837 I’m stuck on the dynamic imports in runtime.js: https://github.com/webaverse/app/blob/master/runtime.js#L806

0reactions
avaercommented, Feb 12, 2021

@ChristopherTrimboli Can you PR anything you had here and link it up to the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run build without any minification · Issue #6643 - GitHub
So my suggestion is: Provide a way to e.g. pass --dev or so to npm run build , so I can get a...
Read more >
Optimizing Performance - React
If you're benchmarking or experiencing performance problems in your React apps, make sure you're testing with the minified production build.
Read more >
Minimizing Bundle Sizes in React - YouTube
How to Minimize Bundle Size in React? In this screencast, we'll be looking at how to speed up your React app by shrinking...
Read more >
Angular 7 minify assets with ng build --prod - Stack Overflow
build.scripts in angular.json but I have some .js files that should not be bundled with angular app. Scripts that are executed before angular ......
Read more >
Minifying - SurviveJS
Minification process analyzes your source code and turns it into a smaller form with the same meaning if you use safe transformations. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found