Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent use of CDN for offline / support offline mode #40

Closed
houston88 opened this issue Dec 6, 2019 · 4 comments
Closed

Prevent use of CDN for offline / support offline mode #40

houston88 opened this issue Dec 6, 2019 · 4 comments

Comments

@houston88
Copy link

I've noticed when running this in an offline scenario, that it fails to load because it cannot load files from a CDN. Is there a way to use this in an offline mode? Thanks!

@houston88
Copy link
Author

Taking a look at this to see if that does the trick: https://github.com/microsoft/monaco-editor/blob/master/docs/integrate-amd-cross.md

@houston88
Copy link
Author

houston88 commented Dec 6, 2019

Ah... and https://www.npmjs.com/package/@monaco-editor/react#config to set baseUrl.

@suren-atoyan
Copy link
Owner

Hello @houston88,

Yes, you are right, you can use monaco.config({ urls: { ... } }); to set the URLs which you need; so you can load them for example from your node_modules. For more see this discussion.

@houston88
Copy link
Author

Awesome thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants