Skip to content

Commit

Permalink
Merge branch 'release/1.0.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Dec 13, 2022
2 parents 3a87516 + 5b3ee9a commit aed3ad9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import*as l from"path";var o;(async function(){o=(await import("critical")).generate})();var m="_critical.min.css",h={inline:!1,extract:!1,width:1200,height:1200,penthouse:{blockJSRequests:!1}};function p(i,r){return{name:"critical",async writeBundle(f,u){let c=[];for(let t of Object.values(u))if(t.type==="asset"&&t.fileName.endsWith(".css")){let a=l.join(f.dir||"",t.fileName);c.push(a)}if(!!c.length)for(let t of i.criticalPages){let a=i.criticalBase,s=i.criticalUrl+t.uri,n=i.criticalConfig&&i.criticalConfig.inline==!0?t.template+".html":t.template+m,g=Object.assign({css:c},h,{base:a,src:s,target:n},i.criticalConfig);console.log(`Generating critical CSS from ${s} to ${n}`),await o(g,e=>{e&&console.error(e),r&&r(e)})}}}}var C=p;export{C as default};
import*as n from"path";var m="_critical.min.css",h={inline:!1,extract:!1,width:1200,height:1200,penthouse:{blockJSRequests:!1}};function p(i,r){return{name:"critical",async writeBundle(o,f){let c=[];for(let t of Object.values(f))if(t.type==="asset"&&t.fileName.endsWith(".css")){let a=n.join(o.dir||"",t.fileName);c.push(a)}if(!!c.length)for(let t of i.criticalPages){let a=i.criticalBase,s=i.criticalUrl+t.uri,l=i.criticalConfig&&i.criticalConfig.inline==!0?t.template+".html":t.template+m,g=Object.assign({css:c},h,{base:a,src:s,target:l},i.criticalConfig),u=(await import("critical")).generate;console.log(`Generating critical CSS from ${s} to ${l}`),await u(g,e=>{e&&console.error(e),r&&r(e)})}}}}var C=p;export{C as default};
//# sourceMappingURL=index.mjs.map
Loading

0 comments on commit aed3ad9

Please sign in to comment.