monaco-editor/samples/browser-esm-webpack-small/index.html

27 lines
548 B
HTML
Raw Normal View History

2018-03-15 00:00:41 +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 Webpack Sample</h2>
2018-03-15 00:00:41 +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 python language coloring</li>
</ul>
2018-03-15 00:00:41 +08:00
2020-09-02 23:35:10 +08:00
To run this sample, you need to:
2018-03-15 00:00:41 +08:00
2020-09-02 23:35:10 +08:00
<pre>
$/> npm install .
$/> npm run simpleserver
$/browser-esm-webpack-small> npm run build
2020-09-02 23:35:10 +08:00
</pre
>
2018-03-15 00:00:41 +08:00
2020-09-02 23:35:10 +08:00
Then, <a href="./dist">open the ./dist folder</a>.
</body>
</html>