Skip to content

Commit ee7dc13

Browse files
authored
Update README.md
1 parent 4ece237 commit ee7dc13

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ This package provides a true ESM (EcmaScript Module) build of the [Monaco Editor
3131
```html
3232
<link rel="stylesheet" href="node_modules/@node-projects/monaco-editor-esm/min/vs/editor/editor.main.css">
3333
```
34+
4. Include the CSS in the main document:
35+
```html
36+
<link rel="stylesheet" href="node_modules/@node-projects/monaco-editor-esm/min/vs/editor/editor.main.css">
37+
```
38+
This is needed, or the monaco font will not work. Cause @font-face rules need to be in root html.
3439

3540
### CSS Import Caveats
3641
- The ESM modules may contain `import './file.css'` statements, which are not yet supported natively in browsers or Node.js. Most bundlers can handle these imports with the appropriate loader/plugin.

0 commit comments

Comments
 (0)