Skip to content

Sourcemap & front matter support for css files#8

Open
julientaq wants to merge 8 commits into5t3ph:mainfrom
julientaq:sourcemap-
Open

Sourcemap & front matter support for css files#8
julientaq wants to merge 8 commits into5t3ph:mainfrom
julientaq:sourcemap-

Conversation

@julientaq
Copy link
Copy Markdown

@julientaq julientaq commented Aug 27, 2024

Thanks to all the folks participating on #1. Pretty helpful.

  • update test to eleventy 3.0 beta
  • add source map
  • add front matter support for css (frontmatter is removed in the asyncBundle).

@julientaq julientaq changed the title [NOT READY YET] Sourcemap & front matter support Sourcemap & front matter support for css files Aug 27, 2024
@julientaq
Copy link
Copy Markdown
Author

julientaq commented Aug 27, 2024

This update only works with elventy 3.0

So Eleventy 2.0 does have the data.page.outputPath but it has a bug with front matter in the css file.

The simplest way to support 2.0 would be to add an option.cssoutputfolder.

This way we could put the sourcemap where it needs to be.

But since the cost to move from eleventy 2 to 3 seems quite low, i’m not sure it’s a good idea.

I spent some time looking at it and we’d need to test for the version of eleventy to provide 2 rules.

Maybe the best way would be to provide an legacy plugin for eleventy to 2.0.1 and a modern for eleventy 3 and onward.

@julientaq julientaq mentioned this pull request Aug 27, 2024
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.

1 participant