@texastribune/postcss-amp

1.4.0 • Public • Published

PostCSS Amp NPM version Build Status

Greenkeeper badge

PostCSS plugin to convert CSS according Accelerated Mobile Pages requirements [amp-logo].

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.

Package Sidebar

Install

npm i @texastribune/postcss-amp

Weekly Downloads

1

Version

1.4.0

License

MIT

Unpacked Size

5.46 kB

Total Files

6

Last publish

Collaborators

  • andrewgibson
  • ttribune
  • ahebler
  • rdm