Skip to content

Commit

Permalink
Fix duplicate stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD committed Jan 8, 2025
1 parent 6ac8ebd commit 8623caa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function build() {
'./app/javascript/packs/internal.tsx',
'./app/javascript/packs/landing.tsx',
'./app/javascript/packs/bootcamp.tsx',
'./app/javascript/packs/bootcamp-ui.tsx',
'./app/javascript/packs/bootcamp-ui-js.tsx',
...(process.env.RAILS_ENV === 'test'
? ['./app/javascript/packs/test.tsx']
: []),
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions app/views/layouts/bootcamp-ui.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
%link{ rel: "preload", href: asset_path('poppins-v20-latin-600.woff2'), as: "font", type: "font/woff2", crossorigin: :anonymous }

-# Then the main stylesheet
= stylesheet_link_tag "bootcamp-ui-js", "data-turbo-track": "reload"
= stylesheet_link_tag "bootcamp-ui", "data-turbo-track": "reload"


-# Then other critical fonts
%link{ rel: "preload", href: asset_path('poppins-v20-latin-500.woff2'), as: "font", type: "font/woff2", crossorigin: :anonymous }
%link{ rel: "preload", href: asset_path('poppins-v20-latin-700.woff2'), as: "font", type: "font/woff2", crossorigin: :anonymous }
Expand Down Expand Up @@ -57,7 +57,7 @@
%link{ href: "/icon.svg", rel: "icon", type: "image/svg+xml" }
%link{ href: "/icon.png", rel: "apple-touch-icon" }
-# = javascript_include_tag "application", "data-turbo-track": "reload", type: "module", crossorigin: :anonymous
= javascript_include_tag "bootcamp-ui", "data-turbo-track": "reload", type: "module", crossorigin: :anonymous
= javascript_include_tag "bootcamp-ui-js", "data-turbo-track": "reload", type: "module", crossorigin: :anonymous
%body{ class: body_class }
%header.c-site-header
Expand Down

0 comments on commit 8623caa

Please sign in to comment.