@texastribune/postcss-amp
v1.4.0
Published
PostCSS plugin to convert CSS according Accelerated Mobile Pages requirements
Downloads
2
Readme
PostCSS Amp
PostCSS plugin to convert CSS according Accelerated Mobile Pages requirements [].
AMP CSS requirements: https://github.com/tinovyatkin/postcss-amp
i-amp-el {
/* elements starting with i-amp- are banned
}
.boo {
filter: gray(.5); /* filter is banned */
color: red !important; /* important is banned */
}
.boo {
/* all banned elements stripped */
color: red;
}
Usage
postcss([ require('postcss-amp') ])
See PostCSS docs for examples for your environment.