diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/resources/META-INF/resources/admin/index.html | 14 | ||||
-rw-r--r-- | src/main/resources/META-INF/resources/importmap.json | 9 |
2 files changed, 10 insertions, 13 deletions
diff --git a/src/main/resources/META-INF/resources/admin/index.html b/src/main/resources/META-INF/resources/admin/index.html index 6e91fd4..d91bbdd 100644 --- a/src/main/resources/META-INF/resources/admin/index.html +++ b/src/main/resources/META-INF/resources/admin/index.html @@ -6,19 +6,7 @@ <title>MulkCMS Admin</title> <script defer src="/node_modules/es-module-shims/dist/es-module-shims.js"></script> - - <script type="importmap-shim"> - { - "imports": { - "loose-envify": "/node_modules/loose-envify/loose-envify.js", - "js-tokens": "/node_modules/js-tokens/index.js", - "symbol-observable": "/node_modules/symbol-observable/es/index.js", - "redux": "/node_modules/redux/es/redux.mjs", - "lit-html": "/node_modules/lit-html/lit-html.js" - } - } - </script> - + <script type="importmap-shim" src="/importmap.json"></script> <script type="module-shim" src="/admin/admin.js"></script> </head> diff --git a/src/main/resources/META-INF/resources/importmap.json b/src/main/resources/META-INF/resources/importmap.json new file mode 100644 index 0000000..42cae7b --- /dev/null +++ b/src/main/resources/META-INF/resources/importmap.json @@ -0,0 +1,9 @@ +{ + "imports": { + "loose-envify": "/node_modules/loose-envify/loose-envify.js", + "js-tokens": "/node_modules/js-tokens/index.js", + "symbol-observable": "/node_modules/symbol-observable/es/index.js", + "redux": "/node_modules/redux/es/redux.mjs", + "lit-html": "/node_modules/lit-html/lit-html.js" + } +} |