Files
raucao 6744c8ffc6 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.
2026-11-09 20:17:45 +04:00

44 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dashtab Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
{{content-for "test-head"}}
<link rel="stylesheet" href="/@embroider/virtual/vendor.css">
<link rel="stylesheet" href="/app/styles/app.css">
<link rel="stylesheet" href="/@embroider/virtual/test-support.css">
{{content-for "head-footer"}}
{{content-for "test-head-footer"}}
</head>
<body>
{{content-for "body"}}
{{content-for "test-body"}}
<div id="qunit"></div>
<div id="qunit-fixture">
<div id="ember-testing-container">
<div id="ember-testing"></div>
</div>
</div>
<script src="/testem.js" integrity="" data-embroider-ignore></script>
<script src="/@embroider/virtual/vendor.js"></script>
<script src="/@embroider/virtual/test-support.js"></script>
<script type="module">import "ember-testing";</script>
<script type="module">
import { start } from './test-helper';
import.meta.glob("./**/*.{js,ts,gjs,gts}", { eager: true });
start();
</script>
{{content-for "body-footer"}}
</body>
</html>