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

Bundling monaco editor #192

Open tm4g1x opened 4 years ago

tm4g1x commented 4 years ago

Hi,

I am having a problem using the monaco on an aws s3 bucket. The upload is using 'sync' https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html#sync but this has the following restriction:

"Syncs directories and S3 prefixes. Recursively copies new and updated files from the source directory to the destination. Only creates folders in the destination if they contain one or more files."

The problem with the monaco assets is, that it contains many subfolders not conatining a file and this is why the assets are not uploaded and hence not available.

Can someone give advice here? Can monaco be bundled somehow? Creating empty files in each folder of the assets, which does not contain files sounds like a dirty way of getting the monaco assets running in s3.

Thanks!