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

30 lines
766 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link integrity="" rel="stylesheet" href="/@embroider/virtual/vendor.css">
<link integrity="" rel="stylesheet" href="/app/styles/app.css">
{{content-for "head-footer"}}
</head>
<body class="font-sans">
{{content-for "body"}}
<script src="/@embroider/virtual/vendor.js"></script>
<script type="module">
import Application from './app/app';
import environment from './app/config/environment';
Application.create(environment.APP);
</script>
{{content-for "body-footer"}}
</body>
</html>