Load app styles via index.html link instead of a JS import

The Tailwind setup commit imported app/styles/app.css from app.js but
left the blueprint's /@embroider/virtual/app.css stylesheet link in
index.html. That link points at an Embroider-synthesized public asset
that is copied verbatim, so its `@import 'tailwindcss'` resolved to
@embroider/virtual/tailwindcss and 404'd in every build (Firefox, Chrome
and the plain web build alike), while the real compiled CSS loaded from
the JS import.

Follow the Tailwind Ember guide: link /app/styles/app.css directly so
Vite processes it, and drop the redundant JS import. This removes the
duplicate stylesheet and the 404. Apply the same change to tests/index.html.
This commit is contained in:
raucao committed 2026-11-09 20:17:45 +04:00
1 parent 4a0590b556
commit 6744c8ffc6
3 files changed
+2 -3

No files matched your search

-1
View File
@@ -6,7 +6,6 @@ import config from 'dashtab/config/environment';
import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';
import setupInspector from '@embroider/legacy-inspector-support/ember-source-4.12';
import '@tailwindplus/elements';
import './styles/app.css';
if (macroCondition(isDevelopingApp())) {
importSync('./deprecation-workflow');
+1 -1
View File
@@ -9,7 +9,7 @@
{{content-for "head"}}
<link integrity="" rel="stylesheet" href="/@embroider/virtual/vendor.css">
<link integrity="" rel="stylesheet" href="/@embroider/virtual/app.css">
<link integrity="" rel="stylesheet" href="/app/styles/app.css">
{{content-for "head-footer"}}
</head>
+1 -1
View File
@@ -10,7 +10,7 @@
{{content-for "test-head"}}
<link rel="stylesheet" href="/@embroider/virtual/vendor.css">
<link rel="stylesheet" href="/@embroider/virtual/app.css">
<link rel="stylesheet" href="/app/styles/app.css">
<link rel="stylesheet" href="/@embroider/virtual/test-support.css">
{{content-for "head-footer"}}