https://github.com/joshbrew/muse-js-tinybuild
A more minimal bundle size for muse-js's MuseClient (187kb), needs to be rewritten for smaller size otherwise
https://github.com/joshbrew/muse-js-tinybuild
Last synced: 7 months ago
JSON representation
A more minimal bundle size for muse-js's MuseClient (187kb), needs to be rewritten for smaller size otherwise
- Host: GitHub
- URL: https://github.com/joshbrew/muse-js-tinybuild
- Owner: joshbrew
- License: mit
- Created: 2022-08-21T00:01:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T15:16:35.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T12:14:59.446Z (over 1 year ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## muse-js-tinybuild
`npm i muse-js-tinybuild`
Browser: `` then MuseClient will be in the window
Just a repackaging of MuseClient to try to minify the library as much as possible using [`tinybuild`](https://github.com/brainsatplay/tinybuild).
The bundle has MuseClient available as a global so it can be included right in your html files and used in script tags. Run the index.html on a local server or use the `tinybuild` command for a quick test.
We got it down to 187kb minified, which is... a lot... but I blame the use of rxjs. This bundle includes types.
To run this repo, open the root in terminal and type:
`npm i`
then
`npm start`
or
`npm i -g tinybuild & tinybuild` which will also handle missing dependencies
Might rewrite this down the line to be clean of fluff.