ngx-monaco-editor icon indicating copy to clipboard operation
ngx-monaco-editor copied to clipboard

Minify editor.main.js

Open GreyFoxRU opened this issue 3 years ago • 2 comments

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

GreyFoxRU avatar Oct 28 '21 12:10 GreyFoxRU

@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 avatar Nov 30 '21 16:11 antechrestos

And this one

antechrestos avatar Nov 30 '21 16:11 antechrestos