diff --git a/app/javascript/esbuild.js b/app/javascript/esbuild.js index 5338009a4b..dce24ce1ec 100755 --- a/app/javascript/esbuild.js +++ b/app/javascript/esbuild.js @@ -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'] : []), diff --git a/app/javascript/packs/bootcamp-ui.tsx b/app/javascript/packs/bootcamp-ui-js.tsx similarity index 100% rename from app/javascript/packs/bootcamp-ui.tsx rename to app/javascript/packs/bootcamp-ui-js.tsx diff --git a/app/views/layouts/bootcamp-ui.haml b/app/views/layouts/bootcamp-ui.haml index 9244069621..0108761dac 100644 --- a/app/views/layouts/bootcamp-ui.haml +++ b/app/views/layouts/bootcamp-ui.haml @@ -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 } @@ -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