Open gwijayas opened 8 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:
gulp purify
to output the purified CSS in amphtml/css
gulp inline-css
to insert the CSS into the HTML in build/index.html
gulp validate
to run the AMP validator on the output fileThat 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:
Trying reproduce, but only successfuly create
amphtml/css/bootstrap.min.css
. Noamphtml/index.html
and nobuild
directory.Using nodejs 0.12.7