Skip to content

Conversation

@bradlc
Copy link
Contributor

@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 June 1, 2021 17:17
@foxted
Copy link

foxted commented Jun 12, 2021

Hi there!

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

With [email protected], Nuxt.js was still behaving properly, watching only the files needed for the project (vue files, javascript and css).

After upgrading to [email protected], 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.

nuxt-modules/tailwindcss#359

@AlexanderBelokon
Copy link

I've created a minimal reproduction repo for this issue: https://github.com/AlexanderBelokon/nuxt-tailwind-watch

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants