workflow: use CDN deps for template explorer so it can be easily deployed
This commit is contained in:
parent
0873254c6c
commit
6dfb62e1ac
@ -5,4 +5,4 @@ Live explorer for template compilation output.
|
||||
To run:
|
||||
|
||||
- `yarn dev template-explorer`
|
||||
- Serve project root over a local HTTP server.
|
||||
- Open `index.html`.
|
||||
|
@ -1,15 +1,15 @@
|
||||
<title>Vue Template Explorer</title>
|
||||
<link rel="stylesheet" data-name="vs/editor/editor.main" href="../../node_modules/monaco-editor/min/vs/editor/editor.main.css">
|
||||
<link rel="stylesheet" data-name="vs/editor/editor.main" href="https://unpkg.com/monaco-editor@0.18.1/min/vs/editor/editor.main.css">
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
|
||||
<div id="header"></div>
|
||||
<div id="source" class="editor"></div>
|
||||
<div id="output" class="editor"></div>
|
||||
|
||||
<script src="../../node_modules/acorn/dist/acorn.js"></script>
|
||||
<script src="../../node_modules/estree-walker/dist/estree-walker.umd.js"></script>
|
||||
<script src="../../node_modules/source-map/dist/source-map.js"></script>
|
||||
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
|
||||
<script src="https://unpkg.com/acorn@7.1.0/dist/acorn.js"></script>
|
||||
<script src="https://unpkg.com/estree-walker@0.8.1/dist/estree-walker.umd.js"></script>
|
||||
<script src="https://unpkg.com/source-map@0.6.1/dist/source-map.js"></script>
|
||||
<script src="https://unpkg.com/monaco-editor@0.18.1/min/vs/loader.js"></script>
|
||||
<script src="./dist/template-explorer.global.js"></script>
|
||||
<script>
|
||||
window._deps = {
|
||||
@ -20,7 +20,7 @@ window._deps = {
|
||||
|
||||
require.config({
|
||||
paths: {
|
||||
'vs': '../../node_modules/monaco-editor/min/vs'
|
||||
'vs': 'https://unpkg.com/monaco-editor/min/vs'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user