1から始めるamp対応
TRANSCRIPT
<style amp-custom> body { color: #333; … } </style>
<style amp-custom> <?php include “css/amp.css"; ?> </style>
! !
var replace = require('gulp-replace');gulp.task('sass', function () { … .pipe(replace('!important','')) .pipe(replace('@charset \"UTF-8\";\n',''))
@charset “UTF-8"style.scss
<script async custom-element=“amp-analytics” src=“https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script> … <amp-analytics type=“googleanalytics” id=“analytics1”><script type=“application/json"> { “vars": { "account": “xxxxxxxxx(トラッキングID)"
}, “triggers": { “trackPageview": { “on": “visible", “request": “pageview" } } }