uncompiled / amp-bootstrap-example

Example workflow for using Bootstrap with AMP
https://uncompiled.github.io/amp-bootstrap-example/
MIT License
74 stars 33 forks source link

failed to reproduce #1

Open gwijayas opened 8 years ago

gwijayas commented 8 years ago

Trying reproduce, but only successfuly create amphtml/css/bootstrap.min.css. No amphtml/index.html and no build directory.

Using nodejs 0.12.7

uncompiled commented 7 years ago

The default gulp command doesn't run any of the helper tasks.

You need to run each of these tasks individually to create the output:

That was done intentionally because this example workflow is really not a panacea to make Bootstrap 100% compatible with AMP. In this example, gulp validate is expected to fail. This is because even after cleaning Bootstrap's CSS, there are still CSS classes that are used, but not allowed as part of the AMP spec. Notably, the errors are caused by @-ms-viewport and !important present in the final CSS.

Possible solutions are: