Integration Bootstrap 4 into Google AMP and CakePHP 4

2019-05-31 06:14:04+00

We want to integrate Bootstrap 4 CSS into AMP html.

The following conditions need to be met:

  • the size of the css must not exceed 50KB
  • the css parameter !important is not allowed in amp

Therefore I write a script that extracts the nessecary css tag from bootstrap.

Tag: amphtml