- Service worker
-
In
node_modules/terraform/lib/stylesheet/processors/scss.js
change thescss.render
options object tofile: filePath, includePaths: dirs, outputStyle: 'expanded', sourceMap: true, sourceMapEmbed: true, sourceMapContents: true, outFile: filePath, omitSourceMapUrl: false
-
In
node_modules/terraform/lib/stylesheet/index.js
changecallback(null, minify.css(result.css), result.map)
tocallback(null, result.css, result.map)
. -
In
node_modules/terraform/lib/template/processors/jade.js
addoptions.pretty = true
beforereturn jade.compile(fileContents, options)
.
Source: http://crocodillon.com/blog/non-blocking-web-fonts-using-localstorage
Install npm module font-store, locally it's fine:
$ mkdir fontstore && cd $_
$ npm install font-store
Now generate the Google Fonts link and run:
$ ./node_modules/font-store/bin/font-store "https://fonts.googleapis.com/css?family=Anonymous+Pro|Rubik:700"
Use https://realfavicongenerator.net
- Favicon for iOS - Web Clip: add a solid background, color
#1800ff
, size as default - Favicon for Android Chrome: background color and theme color #1800ff
- Windows Metro: use the original, color is
blue
- Safari Pinned Tab: turn your picture into a monochrom icon, threshold as default
- Touch Bar: theme color #1800ff
- Favicon Generator Options:
- path:
/images/favicons
- app name:
ffconf 2017
- path:
Delete the generated manifest.json
, we already have our own, just check to reference the images correctly.