summaryrefslogtreecommitdiff
path: root/examples/framework-alpine/src
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-04-11 15:56:42 -0700
committerGravatar GitHub <noreply@github.com> 2022-04-11 15:56:42 -0700
commite606dded873a62a670f72581eab10b20bacf371d (patch)
tree6a0550456a05341b4b8c07a02ed287c86565fe2a /examples/framework-alpine/src
parent3d96315545a809997289bf10658bd9e06a34e176 (diff)
downloadastro-e606dded873a62a670f72581eab10b20bacf371d.tar.gz
astro-e606dded873a62a670f72581eab10b20bacf371d.tar.zst
astro-e606dded873a62a670f72581eab10b20bacf371d.zip
use bundled alpinejs (#3065)
Diffstat (limited to 'examples/framework-alpine/src')
-rw-r--r--examples/framework-alpine/src/pages/index.astro8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/framework-alpine/src/pages/index.astro b/examples/framework-alpine/src/pages/index.astro
index 3626ed604..19b7e6741 100644
--- a/examples/framework-alpine/src/pages/index.astro
+++ b/examples/framework-alpine/src/pages/index.astro
@@ -22,8 +22,12 @@ import Counter from '../components/Counter.astro';
}
</style>
- <!-- Be sure to include AlpineJS -->
- <script src="//unpkg.com/alpinejs" defer is:inline></script>
+ <!-- Load AlpineJS on the page -->
+ <script>
+ import Alpine from 'alpinejs';
+ window.Alpine = Alpine;
+ Alpine.start();
+ </script>
</head>
<body>
<main>