monaco-editor/samples/browser-esm-parcel/index.html

27 lines
603 B
HTML
Raw Normal View History

2018-03-15 08:11:10 +08:00
<!DOCTYPE html>
<html>
2020-09-02 23:35:10 +08:00
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<h2>Monaco Editor Parcel Bundler Sample</h2>
2018-03-15 08:11:10 +08:00
2020-09-02 23:35:10 +08:00
This sample shows how to load a small subset of the editor:
<ul>
<li>Only the core editor and the find widget</li>
<li>Only the json language coloring</li>
</ul>
2018-03-15 08:11:10 +08:00
2020-09-02 23:35:10 +08:00
To run this sample, you need to:
2018-03-15 08:11:10 +08:00
2020-09-02 23:35:10 +08:00
<pre>
2018-03-15 08:11:10 +08:00
$/browser-esm-parcel> npm install .
2019-03-02 08:19:58 +08:00
$/browser-esm-parcel> npm run build
$/browser-esm-parcel> npm run simpleserver
2020-09-02 23:35:10 +08:00
</pre
>
2018-03-15 08:11:10 +08:00
2020-09-02 23:35:10 +08:00
Then, open <a href="http://localhost:9999/">http://localhost:9999/</a>.
</body>
2019-12-20 19:14:33 +08:00
</html>