Is the browser-script-editor for monaco js example self-contained?

时间:2019-01-15 18:08:28

标签: monaco-editor

I am following this example here: https://github.com/Microsoft/monaco-editor-samples/blob/master/browser-script-editor/index.html

Would it work if I only have the files here included in my project? Are the already dist f

1 个答案:

答案 0 :(得分:0)

引用的N文件将加载其他脚本,例如语言定义,如果不为它提供所有尝试加载的文件,则这些脚本将失败。

我的建议是,您通过NPM安装Monaco或下载整个软件包并将其放入项目目录中。这将为您节省大量时间,以排查摩纳哥为何无法正常工作的问题。