express-inline-css
⚡️ Express middleware to generate inline critical rendering CSS to improve render performance
Installation
npm install --save express-inline-css
Preview
// Overriding the render method ;; const app = ; app; app;
// Using renderInlineCSS method ;; const app = ; app; app;
Usage
inlineCSS({ cssFilePath, [override] });
where:
cssFilePath
: Path of the final css file where rules are taken out.override
(optional): It brings you the possibility to override the method render or use renderInlineCSS method.
License
MIT © Jordi López