@invisibleloop/pulse 0.10.0 → 0.10.1
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/docs/src/lib/layout.js
CHANGED
|
@@ -12,7 +12,7 @@ import pkg from '../../../package.json' with { type: 'json' }
|
|
|
12
12
|
// Populated by initLayoutManifest() in server.js before the server starts.
|
|
13
13
|
let _manifest = {}
|
|
14
14
|
export function initLayoutManifest(m) { _manifest = m }
|
|
15
|
-
const asset = href => _manifest[href] || href
|
|
15
|
+
export const asset = href => _manifest[href] || href
|
|
16
16
|
|
|
17
17
|
const version = typeof pkg !== 'undefined' ? (pkg?.version ?? '') : ''
|
|
18
18
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Built entirely from Pulse UI components, zero custom HTML.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { asset } from '../../lib/layout.js'
|
|
9
10
|
import {
|
|
10
11
|
nav as uiNav,
|
|
11
12
|
hero,
|
|
@@ -339,5 +340,5 @@ export default {
|
|
|
339
340
|
${downloadCta}
|
|
340
341
|
</main>
|
|
341
342
|
${pageFooter}
|
|
342
|
-
<script src="/pulse-ui.js" defer></script>`,
|
|
343
|
+
<script src="${asset('/pulse-ui.js')}" defer></script>`,
|
|
343
344
|
}
|
package/package.json
CHANGED
package/public/.pulse-ui-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.1
|