-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tailwind JIT does not work with Embroider (default embroider settings) #729
Comments
You'll have to figure out how this is supposed to work, I'm not familiar with the details of tailwind or @tailwindcss/jit to know what it is supposed to do.
|
This is probably where investigation should occur: jeffjewiss/ember-cli-postcss#732 My hunch is that it's likely an ember-cli-postcss <-> embroider compat issue that needs to be worked out with ember-cli-postcss |
I have a way for this to work, and it's pretty simple overall. tldr: build and configure tailwind separate from embroider, add link to index.html.
"scripts": {
"build": "yarn tailwindcss -o dist/tailwind.css",
"start": "yarn tailwindcss -o dist/tailwind.css --watch"
},
extraPublicTrees: [
require('@nullvoxpopuli/limber-styles/broccoli-funnel')(),
],
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/tailwind.css"> |
I have an app over here: https://github.com/nullvoxpopuli/limber
CLASSIC=true TAILWIND_MODE=watch ember s
allows changes in templates' classes to rebuild the css file, adding classes as I use them in the template.But
TAILWIND_MODE=watch ember s
(using embroider) results in no css changes doing the same or similar class adding.After each change, I'd
cat dist/assets/limber.css | grep text
(I was flipping between one of many text-{color} classes that I'm not using)I'm also using ember-cli-postcss, and I saw another issue related to that addon, but I'm not sure if related.
Here is my ember-cli-postcss config:
My Tailwind config:
The text was updated successfully, but these errors were encountered: