lukejacksonn / lukejacksonn/monacode
monaco minification
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 170
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
I have noticed that monaco editor dynamically loads lots of files. some of these files are quite large (e.g. the uncompressed size of typescriptServices.js is 7.4 mb)
would you consider minifying all the files in monaco directory?
I have tried that with uglifyjs-folder using the command
uglifyjs-folder src/monaco -e -x .js -o src/monaco
caution: this does in-place minification of all the js files in the folder.
The resulting size was less than third and it kept working with no modification of code
would you consider something like that?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the JavaScript files under src/monaco, including typescriptServices.js, and check how the dynamically loaded files are currently served. Try the proposed uglifyjs-folder command, then verify that the editor still works and that the generated files are substantially smaller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100