mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add gzipped package size to website (Fix #992)
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
const gzipSize = require('gzip-size');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
title: `Gatsby Default Starter`
|
||||
title: `html2canvas`,
|
||||
packageSize: gzipSize.sync(
|
||||
fs.readFileSync(path.resolve(__dirname, '../dist/html2canvas.min.js'))
|
||||
)
|
||||
},
|
||||
plugins: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user