monaco-editor/browser-esm-webpack-monaco-plugin/index.html
atomicpages 27b10e31fa Adding examples
Adding an example with the monaco webpack plugin
2019-05-22 08:07:16 -07:00

30 lines
No EOL
715 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<h2>Monaco Editor Webpack Plugin Sample</h2>
To run this sample, you need to:
<pre>
$/browser-esm-webpack-monaco-plugin> npm install
$/browser-esm-webpack-monaco-plugin> npm run start
# or to build for production
$/browser-esm-webpack-monaco-plugin> npm run build
</pre>
If you're building for production you need to statically serve the files:
<pre>
$/browser-esm-webpack-monaco-plugin> npm run build
$/browser-esm-webpack-monaco-plugin> cd dist
$/browser-esm-webpack-monaco-plugin/dist> npx static-server -p 3000 -o
</pre>
</body>
</html>