Commit graph

4 commits

Author SHA1 Message Date
Olivier Goffart
b155dbe601 Add a preview.html to the online code editor that only does the preview withtout the code editors 2021-02-08 11:36:49 +01:00
Olivier Goffart
18881cfcad Online editor don't ship with support for other languages 2020-10-09 12:48:56 +02:00
Simon Hausmann
2041144f45 Fix a warning on start-up about freezing the UI
The console log would show

  "Could not create web worker(s). Falling back to loading web worker code
  in main thread, which might cause UI freezes. Please see
  https://github.com/Microsoft/monaco-editor#faq"

and

  "VM3793 simpleWorker.js:29 You must define a function
  MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker"

when loading. This is fixed by using the monaco editor webpack plugin, which
ensures that the workers are loaded via async script tags.
2020-10-06 10:21:15 +02:00
Simon Hausmann
94fcb725b4 Separate release and dev builds of the online editor
Let `npm run build` do a release build and `npm run start` be used for
development.
2020-10-05 16:45:29 +02:00
Renamed from tools/online_editor/webpack.config.js (Browse further)