]> git.codecow.com Git - libnemo.git/commitdiff
Move test webpage to enable import map scoping and support CDN imports in the future.
authorChris Duncan <chris@codecow.com>
Tue, 4 Aug 2026 20:56:28 +0000 (13:56 -0700)
committerChris Duncan <chris@codecow.com>
Tue, 4 Aug 2026 20:56:28 +0000 (13:56 -0700)
test/index.html [moved from index.html with 94% similarity]

similarity index 94%
rename from index.html
rename to test/index.html
index ad18d390ff361068ab68972a3d50893724b1536a..8a19330b62cda4fc3557b465d2d4ab9708025bb0 100644 (file)
@@ -10,7 +10,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
        <script type="importmap">
                {
                        "imports": {
-                               "libnemo": "./dist/browser.js"
+                               "libnemo": "../dist/browser.js"
+                       },
+                       "scopes": {
+                               "/test/": {
+                                       "libnemo": "../dist/browser.js"
+                               }
                        }
                }
        </script>
@@ -82,7 +87,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
                        }
                })()
        </script>
-       <script src="./test/main.test.mjs" type="module"></script>
+       <script src="main.test.mjs" type="module"></script>
        <style>body{background:black;color:white;}</style>
 </head>