atularen / ngx-monaco-editor

Monaco Editor component for Angular 2 and Above
https://www.npmjs.com/package/ngx-monaco-editor
MIT License
428 stars 155 forks source link

Minify editor.main.js #238

Open GreyFoxRU opened 3 years ago

GreyFoxRU commented 3 years ago

Hello,
Tell me please, how to make an optimized build?
I am doing a build using
ng build --prod --aot --build-optimizer=true
but i still have /assets/monaco-editor/min/vs/editor/editor.main.js 2.8 MB

antechrestos commented 2 years ago

@GreyFoxRU The editor is already minified.

I tried to add in my package.json the dependency "monaco-editor": "^0.18.1" (associated to the "ngx-monaco-editor": "^8.1.1") and change the asset definition to { "glob": "**/*", "input": "node_modules/monaco-editor/min" ,"output": "./assets/monaco/" }

Yet, sadly I get the same result as it is monaco that is quite fat.

See issue on editor repository

antechrestos commented 2 years ago

And this one