Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add eleventy-plugin-sharp, process thumbnails for ideas (resolves #46) #90

Merged
merged 7 commits into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const eleventyNavigationPlugin = require('@11ty/eleventy-navigation');
const eleventyRssPlugin = require('@11ty/eleventy-plugin-rss');
const errorOverlay = require('eleventy-plugin-error-overlay');
const eleventyPWA = require('eleventy-plugin-pwa');
const eleventySharp = require('eleventy-plugin-sharp');
const fs = require('fs');

const htmlMinTransform = require('./src/transforms/html-min.js');
Expand Down Expand Up @@ -85,6 +86,10 @@ module.exports = eleventyConfig => {
eleventyConfig.addPlugin(errorOverlay);
eleventyConfig.addPlugin(eleventyPWA, workboxOptions);
eleventyConfig.addPlugin(eleventyRssPlugin);
eleventyConfig.addPlugin(eleventySharp({
urlPath: '/media',
outputDir: 'dist/media/'
}));

// Transforms.
eleventyConfig.addTransform('htmlmin', htmlMinTransform);
Expand Down
5 changes: 3 additions & 2 deletions .lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ module.exports = {
throttlingMethod: "provided",
// Skipping "uses-http2" due to errors with reports see: http2 https://github.com/GoogleChrome/lighthouse/issues/6539
// Skipping "is-crawlable" because Netlify's preview preview for PRs add `x-robots-tag: noindex`
// Skipping "works-offline" because only the homepage is cached for offline access.
skipAudits: ["uses-http2", "is-crawlable", "works-offline"]
// Skipping "service-worker" because the service worker is disabled on deploy previews.
// Skipping "works-offline" and "offline-start-url" because the service worker is disabled on deploy previews.
skipAudits: ["uses-http2", "is-crawlable", "service-worker", "offline-start-url", "works-offline"]
}
},
assert: {
Expand Down
Loading