postcss-amp-custom
PostCSS plugin to optimize CSS source for AMP HTML.
amp-custom is the core library.
Install
npm install --save-dev postcss-amp-custom
Use
// postcss.config.jsmodule plugins: enableByteLimit: true ;
/* ./src/test.css */ ;@@) } /* ./dist/test.css */
Options
- enableByteLimit
Boolean
- If the CSS source exceeds 50 KB, it issues an error.(Default:false
)