Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register PurgeCSS content array as PostCSS dependencies #4530

merged 1 commit into from Jun 1, 2021


Copy link

@bradlc bradlc commented Jun 1, 2021

This pull requests ensures that files and directories in the PurgeCSS content array are registered as PostCSS dependencies, so that runner caches are correctly invalidated when these change.

@adamwathan adamwathan merged commit 1600fbd into v2.1 Jun 1, 2021
@adamwathan adamwathan deleted the purge-dependencies branch Jun 1, 2021
Copy link

foxted commented Jun 12, 2021

Hi there!

For some obscure reason, when using tailwindcss with Nuxt.js, affects Nuxt.js itself.

With tailwindcss@2.1.2, Nuxt.js was still behaving properly, watching only the files needed for the project (vue files, javascript and css).

After upgrading to tailwindcss@2.1.3, now Nuxt.js starts watching every single file in the project (including node modules, markdown files, IDE specific files (.idea/.vscode) etc..).

Not really sure how yet, I'll keep digging though.

EDIT: This new behaviour caused an issue with @nuxtjs/tailwindcss, because they use nuxt.config.{js,ts}, which is flagged as a glob, thus watching the entire directory where it is contained.


Copy link

AlexanderBelokon commented Jun 24, 2021

I've created a minimal reproduction repo for this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants