Skip to content
Personal website built with 11ty.io with support for webmentions
CSS HTML JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resize-automator.app/Contents First post on hiking Feb 7, 2020
src Add alt tags to featured images Mar 27, 2020
.babelrc
.eleventy.js Added JAMStack article Mar 20, 2020
.env.sample
.gitignore Ignore env Jul 17, 2019
.prettierrc
CNAME Create CNAME Dec 24, 2018
README.md
_redirects Update _redirects Sep 24, 2019
package-lock.json Added JAMStack article Mar 20, 2020
package.json Add alt tags to featured images Mar 27, 2020
postcss.config.js Move to JAMStack Web Starter Feb 3, 2020
tailwind.config.js
webpack.config.js

README.md

Rocket icon

chriscollins.me

Eleventy · Tailwind CSS · HTML · CSS · Javascript

Contents


Project Overview

  • The project uses Eleventy as a static site generator
  • Default templating is Nunjucks (can be changed if you want)
  • PostCSS set up to handle:
    • TailwindCSS
    • Autoprefixer
  • PurgeCSS to remove unused CSS (set up for TailwindCSS by default) in production
  • HTML minified in production
  • CSS inlined and minified in production
  • Webpack used to bundle scripts
  • Scripts optimised for production
  • Document <head> crafted using htmlhead.dev

Getting Started

Install dependencies

npm install

Working locally

Starts watch tasks to compile when changes detected

npm start

Creating a production build

Minify HTML, compress JS, inline and minify CSS.

npm run build

Deployment

You can host the production output on any web server or service you like and upload it via any method, it'll work.

If you don't have an existing place to host your site you should have a look at Netlify, I can't recommend it enough. To get started you can hit the button below.

Deploy to Netlify


Credits

You can’t perform that action at this time.