express-inline-css-amp
⚡️ Express middleware to generate inline rendering CSS for AMP:
Exemple
Generated
Exemple
Installation
npm install --save express-inline-css-amp
Preview
// The render method;;; const app = ;// Yes its works with css, scss and sass \o/app; app;
-
Yes its works with css, scss and sass \o/ and load css by
view
eg. the viewhome
loadhome.css
if one exists. -
CSSPathBase
: This path is set as/tmp/
by default used to load css compiled; -
CSSFilePath
: Path of the final css file where rules are taken out. -
CCSMinify
: Default is true, this brings up the possibility of mifying the css file. -
version
: value - Now, we can cache from css generated automatically just in production
License
MIT © [Eder Eduardo]