Closed davidteren closed 5 years ago
This whole template is based on webpack, you can clone and make changes to tailwind.js for your configuration and then rebuild using, yarn dev or npm run dev.
Please tell me if that solves your issue.
I'm using Tailwind in Ruby on Rails 6 via Webpacker (Rails Webpack Preprocessor)
So in dev mode it expects the Tailwind classes. Bringing style.css
into the mix kind messes with stuff unless I need to figure that out.
Here I use a pre https://github.com/tailwindadmin/admin/commit/b14b669d1808ee178bd7828ae9a90a2beb2bdfa4 commit index.html
And here I use the latest commits index.thml
You need to replace your app/javascript/css/tailwind.js with https://github.com/tailwindadmin/admin/blob/master/tailwind.js
because this one is having some color combinations and one plugin. Try this one revert if it works.
Thanks it's working now. Well almost. I get a Error: Cannot find module 'tailwindcss-tables' I have installed
yarn add tailwindcss-tables If I remove
require('tailwindcss-tables')(),` the page loads.
try this instead require('tailwindcss-tables')()
give full path to node_modules require('/node_modules/tailwindcss-tables')()
It's working now. Thanks so much for your efforts.
I am glad this issue is fixed, so closing the issue now...
This is a really nice Admin Dashboard. Would really like to use this. However it looks like
index.html
was processed and can no longer be developed using preprocessed Tailwind?Seems it happened in this commit. https://github.com/tailwindadmin/admin/commit/b14b669d1808ee178bd7828ae9a90a2beb2bdfa4
Is there a current preprocessed version available? Or am I missing something?