1.4.2 • Published 3 years ago
gatsby-plugin-html2amp v1.4.2
gatsby-plugin-html2amp
Create AMP(Accelerated Mobile Pages) for your Gatsby site by using html2amp
Install
$ npm install --save gatsby-plugin-html2amp
How to use
In 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: []
}
}
Options
- files
- List of generated html path patterns from
publicPath
- Default is
[**/*.html]
- List of generated html path patterns from
- publicPath
- Directory for building by gatsby
- Default is
public
- gaConfigPath
- amp-analytics config json for google analytics
- The path is from
publicPath
- Optional
- dist
- Path to output
- If the options is not set files are override by AMP result
- optimize
- If true, this module will optimize the html by using @ampproject/toolbox-optimizer
- htmlPlugins
- you can add custom converter for html
- cssPlugins
- you can add custom converter for css
More Detail
Please check my article out for detail. ⚡
1.4.2
3 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.4.0
5 years ago
0.3.3
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.0
5 years ago