-
Notifications
You must be signed in to change notification settings - Fork 97
How to import relative css files? #39
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
Comments
I just had to figure this out too. In order to import any custom css files you have to use the postcss-import plugin with a postcss.config.js file as described here: https://tailwindcss.com/docs/using-with-preprocessors#build-time-imports Once you set that up then your application.tailwind.css file can look like:
where your custom.css file is included. Then add the I'm still not sure whether the other postcss plugins are required like I had when using in webpacker, e.g. flexbugs-fixes, preset-env etc. I basically kept my postcss.config.js file that same as before with webpacker but had to |
Just noticed this was referenced in issue #24 as well. |
Documented the this question as part of the FAQ: 2a17da2. |
It should also be mentioned here that in order to use |
That's right. But also the default setup. So you'd have to have actively removed it not to see that. Or have you found another way it's missing? |
Had to add Looks like it's being removed from the default setup here during install:
|
Hmm, yeah, there's that conflict again where we're using the same directory for both styles that need compiling and those that do not. Need to figure a better solution for this. |
This is still an issue on new builds |
Uh oh!
There was an error while loading. Please reload this page.
The bundle:css command bundles the
app/assets/stylesheets/application.tailwind.css
file. How to include relative css files to be bundled too?File structure
The text was updated successfully, but these errors were encountered: