【文件属性】:
文件名称:gatsby-plugin-html2amp:Gatsby插件可从HTML生成AMP(加速移动页面)
文件大小:85KB
文件格式:ZIP
更新时间:2021-05-12 17:03:09
JavaScript
gatsby-plugin-html2amp
使用为您的盖茨比网站创建AMP(加速移动页面)
安装
$ npm install --save gatsby-plugin-html2amp
如何使用
在gatsby-config.js中
{
resolve : 'gatsby-plugin-html2amp' ,
options : {
files : [ 'post/**/index.html' , 'index.html' ] ,
publicPath : 'public' ,
gaConfigPath : 'gaConfig.json' ,
dist : 'public/dist' ,
optimize : true ,
htmlPlugins : [ ] ,
cssPlugins : [ ]
}
}
选项
档案
从
【文件预览】:
gatsby-plugin-html2amp-master
----.eslintrc(41B)
----gatsby-node.js(1KB)
----LICENSE(1KB)
----README.md(1KB)
----renovate.json(103B)
----.gitignore(914B)
----index.js(8B)
----package-lock.json(314KB)
----package.json(1KB)