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

Error: [vite-plugin-tailwind-purgecss] EACCES: permission denied #17

Closed
iceleo-com opened this issue Oct 30, 2023 · 1 comment · Fixed by #27
Closed

Error: [vite-plugin-tailwind-purgecss] EACCES: permission denied #17

iceleo-com opened this issue Oct 30, 2023 · 1 comment · Fixed by #27

Comments

@iceleo-com
Copy link

Hi,

Hope you are doing well!

I got below error while integrating the plugin.

[vite-plugin-tailwind-purgecss] EACCES: permission denied, scandir '/home/brat/Works/Node/node-mely-server/storage/mongo/diagnostic.data'

This is my config:

purgeCss({
    content: [
        './template/web/components/**/*.svelte',
        `./template/web/zones/${entry}/**/*.svelte`,
    ],
    skippedContentGlobs: [
        './node_modules/**',
        './dist/**',
        './public/**',
        './src/**',
        './storage/**',
    ],
}),

I'm working with docker, the "storage" directory's files are generated by root user

I guess the plugin is trying scan all directories, and the "skippedContentGlobs" option doesn't take effect.

I appreciate any suggestion 🙏

@AdrianGonz97
Copy link
Owner

Sorry for the lack of response! The new purging strategy, introduced in #27, should curb this issue altogether.

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 a pull request may close this issue.

2 participants