whoisvadym / eleventy-plugin-postcss

Eleventy plugin for PostCSS library
11 stars 2 forks source link

Ability to ignores files #7

Open MangelMaxime opened 2 years ago

MangelMaxime commented 2 years ago

Hello, When using plugins like postcss-import it is common to split the CSS into smaller files.

Example:

image

Could the plugin ignore files that start with an _?

Using eleventyConfig.ignores.add("src/**/_*.pcss"); doesn't work around the problem. It seems like this also remove the files from the watch list. Meaning that if one of _*.pcss file change it doesn't trigger a new compilation.

megheaiulian commented 1 year ago

If you move the css imported files to _includes than they are watched for changes but not copied to the build. Something like '_includes/css' works great.