- Support for no-js (and other modernizr properties)
- Check good usage of semantic tags
- Generate favicons with http://realfavicongenerator.net/
- Google Analytics scripts
- Remove unused fonts
- Test on MS / chrome / iOs / FF browsers : mobile mode & desktop mode
- Run Lighthouse & iterate
- Run Pagespeed Insight
This file contains 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 htmlStandards = require('reshape-standard') | |
const cssStandards = require('spike-css-standards') | |
const jsStandards = require('spike-js-standards') | |
const pageId = require('spike-page-id') | |
const { _ } = require('lodash') | |
const env = process.env.NODE_ENV | |
const entries = Object.assign({}, ..._.map(_.filter(fs.readdirSync('./assets/js/'), file => file.charAt(0) !== '_'), file => | |
_.fromPairs([[`js/${path.parse(file).name}`, `./assets/js/${file}`]]))) |
This file contains 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
# ... | |
<Files sw.js> | |
# FileETag None # LIIT : disabled this to check if it allows cdn update | |
# Header unset ETag # LIIT : disabled this to check if it allows cdn update | |
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | |
Header set Pragma "no-cache" | |
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" | |
</Files> |

This file contains 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 cssStandards = require('spike-css-standards')(); | |
const postcss = require('postcss'); | |
module.exports = { | |
reshape: htmlStandards({ | |
locals: ctx => ({ pageId: pageId(ctx) }), | |
content: { | |
postcss: css => postcss(cssStandards.plugins) | |
.process(css, { parser: cssStandards.parser }) | |
.then(res => res), |
first of, npm install --save-dev zepto-webpack
.
Then, in your Webpack config :
// ...
resolve: {
alias: {
ShoelaceDropDowns: path.resolve(__dirname, 'node_modules/shoelace-css/source/js/dropdowns.js'),
ShoelaceTabs: path.resolve(__dirname, 'node_modules/shoelace-css/source/js/tabs.js'),
This file contains 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
// this function converts LAMBERT93 coordinates used by IGN to lat / lon coordinates | |
// found here https://gist.github.com/will83/5920606 | |
const toWGS = (x, y) => { | |
const b7 = 298.257222101; | |
const b8 = 1 / b7; | |
const b9 = 2 * b8 - b8 * b8; | |
const b10 = Math.sqrt(b9); | |
const b13 = 3; | |
const b14 = 700000; | |
const b15 = 12655612.0499; |
This file contains 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
node_modules |
OlderNewer