[SOLVED] Upgrading to Tailwind 3 - all the gotchas #616
adrelliott
started this conversation in
Ideas
Replies: 1 comment
-
@adrelliott All of your personal github links are dead, in particular to github commits. Consider Gists, if you must. That said, the rest of your guide still works for a fresh install of the Jigsaw Blog template. module.exports = {
// purge: {
content: [ Keep it static! 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
Love Jigsaw, but upgrading to Tailwind 3 took me days of head-scratching and tears. I read all the discussions, Google ALLTHETHINGS and managed to find a way to upgrade.
EDIT: I think I've cracked it. I'll just list the commits here. So if you're looking to upgrade to TailwindCSS 3, follow these steps:
npm audit fix
. No idea what it did, but it stopped the npm error messages from showing.npm npm install -D
followed by each of the highlighted plugins (typography, forms, aspect-ratio & line-clamp). Did them one by one, but I'm sure you'll know how to do them together.tailwind.config.js
to use the new Tailwind format. See the changes heresource/_assets/sass/_base.scss
like this. Now, it looks like a lot of changes, but mainly it was wrapping the entire contents in@layer base { ALLTHEEXISTINGCSS }
@apply .
and changed to@apply
(no period)@apply .my-4;
was changed to@apply my-4;
source/_assets/sass/_navigation.scss
(commit is here) andsource/_assets/sass/_search.scss
(see commit).npm run watch
went crazy and started looping endlessly...tailwind.config.js
like this.Now, I'll be honest here. I have no idea what a lot of the above actually does!
So:
ORIGINAL QUESTION, NOW OBSOLETE:
~Now, here's where I need some advice - to help anyone else in this situation, I did a commit after each file change and labelled it according to what I changed.
But this is part of a bigger project that I'd like to work on. Is there a way to share my repo (on Github), and all the commits, but only up to a certain point?
i.e. https://github.com/adrelliott/oblongloves/commits/main right now shows the changes to get Tailwind 3 installed.
But tomorrow I might want to commit and push changes that would be irrelevant to anyone looking purely to upgrade to TW3.
In short - is there a way to publish a snapshot of the repo today, including the commits, that won't change if I commit and push more changes..?
Git makes my head hurt - I'm sure there's a way to do this, but I don't even know what question to google!~
Beta Was this translation helpful? Give feedback.
All reactions