Benjamin Preiss

Results 28 comments of Benjamin Preiss

I am having the same problem - can't hijack `format` to print the AST I am passing it... Do you folks have a clue why?

Not even dependency re-optimization forces a postcss reload: https://github.com/frontline-hq/tailwind-dynamic-safelist/blob/main/getSafelist.js#L53

thanks for the quick reply. I did check both restart and reload just now. Neither lead to the desired outcome. I did check quickly by putting together a vite plugin...

Ah, yes that might be it - maybe resetting the node require cache for `postcss.config.js`: `delete require.cache[require.resolve('./postcss.config.js')]` ?

> btw. vite exposes server.watcher to plugins, so you would be able to implement your dynamic safelist as a vite plugin without a need for parcel watcher or jiti. Oh...

> vite then passes postcss config along and postcss does not try to read it again itself (at least according to the docs). Some limitations might apply in terms of...

**off topic:** Ah, I see. I am building this system as part of a component library where there are certain components (like a button) that have up to 30 or...

@bajtos I am wondering, does `zinnia run ...` reload when there are changes in the codebase? If so, couldn't I set up my repo with `vite` or `bun` and use...