Replies: 2 comments 3 replies
-
11ty is using BrowserSync for hot reloading and as such I'm not sure this has nothing to do with Tailwind; I could be wrong, though (double checking now...) https://www.11ty.dev/docs/getting-started/#step-5-gaze-upon-your-templates Do you get the following message when running the script
ETA Maybe you'll want to add some BrowserSync options: https://www.11ty.dev/docs/watch-serve/#override-browsersync-server-options |
Beta Was this translation helpful? Give feedback.
-
So far, I have been using the Here is my script setup: "scripts": {
"start": "yarn watch",
"watch": "npm-run-all --parallel watch:css watch:html",
"watch:css": "postcss src/_includes/tailwind/tailwind.css -o src/css/tailwind-generated.css --watch",
"watch:html": "npx @11ty/eleventy clean && npx @11ty/eleventy --serve"
}, I will be going on a live stream on Monday morning (Sunday afternoon/evening in most of the World 😅) to pair with Mike Riethmuller and help him build an 11ty plugin for Tailwind CSS. Idea is to build a plugin that you can require in your I'll post a link here after we've recorded the stream 👍 |
Beta Was this translation helpful? Give feedback.
-
Info:
using Eleventy as SSG
NPM scripts, postccs config etc found here
I've been struggling to find a good solution/answer to this. I'm not even sure it is possible, though I believe it is. Whenever I add a tailwind class or edit the html page with tailwind - my local dev environment does not hot reload. I have to ctrl c out of the server running and then restart it and run my scripts again in order for the page to update the html/tailwind changes on the page. It works, but its annoying and not the best workflow to have to ctrl c the running server then run the scripts again every time I make a little change in order to see it. Any ideas/thoughts greatly appreciated - esp if I'm just completely missing something here - thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions