jgarber623 / eleventy-plugin-postcss

An Eleventy plugin for processing CSS files with PostCSS.
https://www.npmjs.com/package/@jgarber/eleventy-plugin-postcss
MIT License
0 stars 0 forks source link

Account for global default layouts #20

Closed jgarber623 closed 2 months ago

jgarber623 commented 2 months ago

Description

This PR fixes an issue where a layout file configured for use by all templates (for example, configured using an .11tydata.js file in the root of the source folder) would impose a layout (HTML, most likely) on the generated CSS files. That's not great, so this PR implements the suggestion made by @justinfagnani in #18. Tests have been added to confirm the change behaves as intended.

In other words, this plugin now disables layouts for CSS files.

Resolves #18.

Commits