This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="preload" as="image" href="640.png" | |
imagesrcset="640.png 640w, 800.png 800w, 1024.png 1024w" | |
imagesizes="100vw"> | |
<!-- preload the correct image for the following element --> | |
<img src="640.png" | |
srcset="640.png 640w, 800.png 800w, 1024.png 1024w" | |
sizes="100vw"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { createRemoteFileNode } = require(`gatsby-source-filesystem`); | |
exports.onCreateNode = async ({ | |
actions, | |
node, | |
createNodeId, | |
store, | |
cache | |
}) => { | |
const { createNode } = actions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "sqip-cache-tryout", | |
"version": "1.0.0", | |
"description": "", | |
"main": "", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "stefan judis <[email protected]>", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (migration) { | |
// create a new content type “Conference” | |
const conference = migration.createContentType('conference') | |
.name('Conference/Meetup') | |
.displayField('name') | |
// set up the new fields | |
conference.createField('name').type('Symbol').required(true).name('Conference/Meetup name') | |
conference.createField('country').type('Symbol').required(true).name('Country Code') | |
conference.createField('city').type('Symbol').required(true).name('City') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>ES6 modules tryout</title> | |
<!-- does this make sense for es module supporting browsers --> | |
<!-- this works fine for Safari Preview but --> | |
<!-- this will now trigger downloads for browsers that don't understand type="module" :( --> | |
<link rel="preload" href="./dist/modules/dep-1.js" as="script"> | |
<link rel="preload" href="./dist/modules/dep-2.js" as="script"> | |
<!-- is there instead a way to detect ES module support and inject these with an inline script? --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dep2 from './dep-2.js'; | |
export default function() { | |
return dep2(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Projects/grunt-phantomas | 🐶 👁 😶 master (╯°□°)╯ | |
> phantomas https://www.lesara.de --verbose --no-externals --allow-domain=daol3a7s7tps6.cloudfront.net --timeout=2000 --analyze-css --ignore-ssl-errors --ssl-protocol=any | |
12:30:59.126 phantomas v1.17.0: /Users/stefanjudis/.nvm/versions/node/v7.1.0/lib/node_modules/phantomas/ | |
12:30:59.127 Options: {"format":"plain","R":"plain","reporter":"plain","debug":"false","ssl-protocol":"any","ignore-ssl-errors":true,"timeout":2000,"allow-domain":"daol3a7s7tps6.cloudfront.net","silent":false,"progress":false,"page-source":false,"film-strip":false,"colors":false,"analyze-css":true,"stop-at-onload":false,"spy-eval":false,"scroll":false,"no-externals":true,"disable-js":false,"v":true,"verbose":true,"h":false,"help":false,"V":false,"version":false,"url":"https://www.lesara.de","user-agent":"phantomas/1.17.0 (PhantomJS/2.1.1; darwin x64)"} | |
12:30:59.127 Loading: core modules... | |
12:30:59.128 Core module navigationTiming v1.0 initialized | |
12:30:59.131 Core module requestsMonitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const frameModule = require('ui/frame'); | |
const Observable = require('data/observable').Observable; | |
const context = new Observable({}); | |
const entryService = require('../../shared/services/entries'); | |
let page; | |
exports.loaded = (args) => { |