summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-24 11:06:23 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-24 11:06:23 +0100
commit93fe1353a39500bd9e378b32a0f2d0ccd2a94a6d (patch)
tree1a61dcd4279ed21a99cac9b911e0d16d299d57cb /src/main/resources
parent35cb159dcb78b6b14523dca5c041ef7dc1740906 (diff)
Web: Import JavaScript modules by path, without an import map.
Change-Id: I2142ddb12e4eb39ec2a80947f6f77d5a6c9812a6
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/META-INF/resources/admin/AdminElement.js4
-rw-r--r--src/main/resources/META-INF/resources/admin/index.html4
-rw-r--r--src/main/resources/META-INF/resources/package.json1
3 files changed, 3 insertions, 6 deletions
diff --git a/src/main/resources/META-INF/resources/admin/AdminElement.js b/src/main/resources/META-INF/resources/admin/AdminElement.js
index e49c606..1fdfbe7 100644
--- a/src/main/resources/META-INF/resources/admin/AdminElement.js
+++ b/src/main/resources/META-INF/resources/admin/AdminElement.js
@@ -1,5 +1,5 @@
-import {html, render} from "lit-html";
-import {createStore} from "redux";
+import {html, render} from "../web_modules/lit-html.js";
+import {createStore} from "../web_modules/redux.js";
export class AdminElement extends HTMLElement {
constructor() {
diff --git a/src/main/resources/META-INF/resources/admin/index.html b/src/main/resources/META-INF/resources/admin/index.html
index 919c44b..f4db272 100644
--- a/src/main/resources/META-INF/resources/admin/index.html
+++ b/src/main/resources/META-INF/resources/admin/index.html
@@ -5,9 +5,7 @@
<meta charset="UTF-8">
<title>MulkCMS Admin</title>
- <script defer src="/node_modules/es-module-shims/dist/es-module-shims.js"></script>
- <script type="importmap-shim" src="/web_modules/import-map.json"></script>
- <script type="module-shim" src="/admin/admin.js"></script>
+ <script type="module" src="/admin/admin.js"></script>
</head>
<body>
diff --git a/src/main/resources/META-INF/resources/package.json b/src/main/resources/META-INF/resources/package.json
index 714a895..6100124 100644
--- a/src/main/resources/META-INF/resources/package.json
+++ b/src/main/resources/META-INF/resources/package.json
@@ -1,6 +1,5 @@
{
"dependencies": {
- "es-module-shims": "^0.4.6",
"lit-html": "^1.1.2",
"normalize.css": "^8.0.1",
"redux": "^4.0.5",