-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
I've been playing around with the new Engines integration, and have discovered an issue.
I've created an issue on propshaft with more detail, but I wanted to cross-post here for awareness.
TLDR:
- A fresh Rails app uses
stylesheet_link_tag(:app)
, which adds in all CSS files inapp/assets/
, including files inapp/assets/builds/
, which includes the entry files generated (egapp/assets/builds/tailwind/<engine_name>.css
). - This means the entry files are served-up to the browser raw, rather than after being explicitly added to
tailwind/application.css
I first noticed this when I saw an error in the browser console, because the file had a reference to the full local path on disk:
/* DO NOT MODIFY THIS FILE, it was auto-generated by tailwindcss-rails */
@import "/Users/whatever/my_gem/app/assets/tailwind/my_gem/engine.css";
Metadata
Metadata
Assignees
Labels
No labels