Skip to content

Commit bce3cb3

Browse files
committed
Fix css:install not adding javascript_importmap_tags
1 parent 4249596 commit bce3cb3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## [Unreleased]
22

3+
## [1.0.3] - 2025-01-24
4+
- Fix css:install not adding javascript_importmap_tags
5+
36
## [1.0.2] - 2025-01-24
47
- Import external css dependencies from esm.sh
58

lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
<%%= stylesheet_link_tag <%= style_link_target %>, "data-turbo-track": "reload" %>
3030
<%%= stylesheet_link_tag "css-zero/utilities", "data-turbo-track": "reload" %>
3131
<%- end -%>
32+
<%- if importmaps? -%>
33+
<%%= javascript_importmap_tags %>
34+
<%- else -%>
35+
<%%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
36+
<%- end -%>
3237
</head>
3338

3439
<body class="header-layout">

0 commit comments

Comments
 (0)