Skip to content

Latest commit

 

History

History
115 lines (74 loc) · 4 KB

README.md

File metadata and controls

115 lines (74 loc) · 4 KB

chaos-boilerplate-front

Front-end boilerplate, to suit my needs.

Gulp heavy

Numerous optimisations are done automattically thanks to gulp.

More details in /gulp.

Here are the main commands.

gulp

Copy /src & selected vendors to /watch

gulp watch

Html, css, js HMR

gulp prod

Concat, minify & inline inject of css & js

Before prod Checklist

Various recommandations, you can also directly run online validators

Online validators

Html

  • Meta tags

  • Open graph tags

  • Favicon, pref SVG

  • itemprop attribute

  • Linted

  • Minified

  • Remove css & js tags if inline injection

Css

  • Linted
  • Concat external librairies
  • Minified
  • Inline injection
  • .htaccess inline security (SHA-256) (XSS prevention)
  • Remove unused CSS

JS

  • Linted
  • Concat external librairies
  • Minified
  • Inline injection
  • .htaccess inline security (SHA-256) (XSS prevention)
  • Remove unused JS

Misc

TODO