ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

bug/issue 1241 prerendering formatting breaks bundle mapping optimization #1244

Closed thescientist13 closed 3 months ago

thescientist13 commented 3 months ago

Related Issue

resolves #1241

Summary of Changes

  1. refactor bundle mapping for <script>, <link> and <style> tags
  2. Validated through a test case

TODO

  1. [x] finish script bundle mapping
  2. [x] style bundle mapping refactoring
  3. [x] link bundle mapping refactoring
  4. [x] open up an issue tracking a more programmatic way to do this throughout greenwood - already existed, so added there
  5. [x] can we solve this in modelResource? - issue is that modelResource happens before any prerendering, so won't be formatted in time 😞