-
Hi I use gulp to run tasks while I develop my websites. Everything has worked out fine using Tailwind v3 but now I cannot get it to work with v4 at all. I'm sure it's possible there is a better way to do it instead of what I have below so any alternative suggestions would be great. The gulp tasks creates a sitestyles.css as well as a minified version sitestyles.min.css. It also does a similar job with JS scripts. It also watches for changes and refreshes the browser. I need that functionality again but I am all out of options to recreate it with Tailwind V4. Here is my gulpfile that works with v3:
This is the closest thing I've got to work with v4. I don't get any errors and at some point I think I got it to write a few grid classes but not much else. Basically the problem is the classes that I write in the HTML just aren't getting added to the stylesheet.
Any suggestions would be really helpful as otherwise I will have to go back to v3 and use that at least until some working examples crop up in various forums. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
What about the current setup doesn't work? Could you provide a reproducible example git repo please? |
Beta Was this translation helpful? Give feedback.
.gitignore
file with the content:node_modules
folder, which is what we want since it does not contain any template code for the project. See the documentation for details.@tailwindcss/postcss
:require()
oftailwind
ingulpfile.js
:@@ -5,7 +5,6 @@ const cache = require('gulp-cache'); const uglify = require('gulp-uglify…