Open sc0ttj opened 4 years ago
1. Support multiple JS CDNs:
Allow user to set preferred CDN in site.yml:
site.yml
2. Bundle the NPM deps defined in site.yml as a single JS file:
Reduce network requests, while keeping things cache-able, by bundling the main site JS deps as a single file at build time:
curl
assets/js/site.js
If a page has its own, separate list of deps, bundle them into a separate file:
assets/js/${page_slug}.js
1. Support multiple JS CDNs:
Allow user to set preferred CDN in
site.yml
:2. Bundle the NPM deps defined in
site.yml
as a single JS file:Reduce network requests, while keeping things cache-able, by bundling the main site JS deps as a single file at build time:
curl
at build time to grab the JS, put it intoassets/js/site.js
If a page has its own, separate list of deps, bundle them into a separate file:
curl
at build time to grab the JS, put it intoassets/js/${page_slug}.js