doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.6k stars 1.46k forks source link

Problem with reloading some files using postcss 8 and tailwindcss #1596

Open lucastrvsn opened 3 years ago

lucastrvsn commented 3 years ago

Bug Report

Describe the bug

When developing components for tailwindcss, I will separate each component on your own file. But, if I require this file and edit it, docz will not reload this file and its content. If you edit the root component file, it will be reloaded. On the reproduceable repo I mark with comments how to test it.

To Reproduce

https://github.com/lucastrvsn/docz-issue-postcss-import

To test, make some changes on src/components.js and on src/tailwind.js. Follow the comments on src/tailwind.js.

Expected behavior

Reloading the css when I edit both files.

Environment

ali-ahari-hashemi commented 2 years ago

Did you ever figure this out? I have a workaround that I have been using where I will copy the tailwind config file into the .docz folder and then run docz dev, but would be nice if there was a less hacky solution.

utsavdotpro commented 2 years ago

Hey @ali-ahari-hashemi, can you share your workaround in detail? Thanks