html2canvas/www/gatsby-config.js

57 lines
1.9 KiB
JavaScript
Raw Normal View History

const gzipSize = require('gzip-size');
const path = require('path');
const fs = require('fs');
2017-12-09 12:47:25 +03:00
module.exports = {
siteMetadata: {
title: `html2canvas`,
packageSize: gzipSize.sync(
fs.readFileSync(path.resolve(__dirname, '../dist/html2canvas.min.js'))
)
2017-12-09 12:47:25 +03:00
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/../docs/`
}
},
`gatsby-plugin-catch-links`,
2017-12-10 17:28:34 +03:00
`gatsby-plugin-twitter`,
2017-12-09 12:47:25 +03:00
`gatsby-plugin-react-helmet`,
`gatsby-plugin-glamor`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-prismjs`,
options: {
// Class prefix for <pre> tags containing syntax highlighting;
// defaults to 'language-' (eg <pre class="language-js">).
// If your site loads Prism into the browser at runtime,
// (eg for use with libraries like react-live),
// you may use this to prevent Prism from re-processing syntax.
// This is an uncommon use-case though;
// If you're unsure, it's best to use the default value.
classPrefix: 'language-'
}
}
]
}
2017-12-10 11:43:34 +03:00
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-188600-10'
}
2017-12-09 12:47:25 +03:00
}
]
};