AdrianGonz97/vite-plugin-tailwind-purgecss

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

iceleo-com opened this issue · 1 comments

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 🙏

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