@jxsuite/compiler 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/compiler.js
CHANGED
package/package.json
CHANGED
package/src/site/site-build.js
CHANGED
|
@@ -512,7 +512,7 @@ function injectComponentScripts(
|
|
|
512
512
|
// Inject CSS links in <head> for ALL components that have CSS sidecars
|
|
513
513
|
const cssLinks = usedTags
|
|
514
514
|
.filter((/** @type {string} */ tag) => cssMap.has(tag))
|
|
515
|
-
.map((/** @type {string} */ tag) => `<link rel="stylesheet" href="
|
|
515
|
+
.map((/** @type {string} */ tag) => `<link rel="stylesheet" href="/components/${tag}.css">`)
|
|
516
516
|
.join("\n ");
|
|
517
517
|
if (cssLinks) {
|
|
518
518
|
html = html.replace("</head>", ` ${cssLinks}\n</head>`);
|
|
@@ -534,7 +534,7 @@ function injectComponentScripts(
|
|
|
534
534
|
|
|
535
535
|
const moduleScripts = jsTags
|
|
536
536
|
.map(
|
|
537
|
-
(/** @type {string} */ tag) => `<script type="module" src="
|
|
537
|
+
(/** @type {string} */ tag) => `<script type="module" src="/components/${tag}.js"></script>`,
|
|
538
538
|
)
|
|
539
539
|
.join("\n ");
|
|
540
540
|
|
|
@@ -625,8 +625,7 @@ function injectPreRenderedComponents(html, preRendered, componentDefs) {
|
|
|
625
625
|
function injectNpmElementScripts(html, npmElements) {
|
|
626
626
|
const scripts = npmElements
|
|
627
627
|
.map(
|
|
628
|
-
(/** @type {string} */ spec) =>
|
|
629
|
-
`<script type="module" src="./node_modules/${spec}"></script>`,
|
|
628
|
+
(/** @type {string} */ spec) => `<script type="module" src="/node_modules/${spec}"></script>`,
|
|
630
629
|
)
|
|
631
630
|
.join("\n ");
|
|
632
631
|
|