mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 00:38:24 +02:00
✨ Support development and production plugin runtime
This commit is contained in:
parent
97c3abfd60
commit
d7324b2e98
4 changed files with 14 additions and 23 deletions
|
@ -23,25 +23,19 @@
|
|||
{{/isDebug}}
|
||||
|
||||
<link rel="icon" href="images/favicon.png" />
|
||||
|
||||
<script type="importmap">
|
||||
{"imports": {"plugins-runtime": "http://localhost:4200/index.mjs"}}
|
||||
</script>
|
||||
|
||||
<script type="module" src="http://localhost:4200/index.mjs"></script>
|
||||
|
||||
<script>
|
||||
window.penpotTranslations = JSON.parse({{& translations}});
|
||||
window.penpotVersion = "%version%";
|
||||
window.penpotBuildDate = "%buildDate%";
|
||||
</script>
|
||||
|
||||
{{# manifest}}
|
||||
<script>window.penpotWorkerURI="{{& worker}}"</script>
|
||||
<script defer src="{{& config}}"></script>
|
||||
<script defer src="{{& polyfills}}"></script>
|
||||
{{/manifest}}
|
||||
|
||||
<script type="module" src="{{pluginRuntimeUri}}/index.mjs"></script>
|
||||
|
||||
<script>
|
||||
window.penpotTranslations = JSON.parse({{& translations}});
|
||||
window.penpotVersion = "%version%";
|
||||
window.penpotBuildDate = "%buildDate%";
|
||||
</script>
|
||||
<!--cookie-consent-->
|
||||
</head>
|
||||
<body>
|
||||
|
@ -49,17 +43,10 @@
|
|||
{{> ../public/images/sprites/symbol/cursors.svg }}
|
||||
<div id="app"></div>
|
||||
<section id="modal"></section>
|
||||
{{# manifest}}
|
||||
|
||||
{{# manifest}}
|
||||
<script defer src="{{& shared}}"></script>
|
||||
<script defer src="{{& main}}"></script>
|
||||
|
||||
<penpot-plugins />
|
||||
{{/manifest}}
|
||||
|
||||
<script type="module">
|
||||
import * as runtime from "plugins-runtime";
|
||||
runtime.initialize(globalThis.app.plugins.api);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue