Minimal starter kit for under 2 KB sites
Go to file
Laurenţiu Trofoşilă d0d63440cb
Merge pull request #301 from zeplia/dependabot/npm_and_yarn/cdk/constructs-10.1.107
Bump constructs from 10.1.106 to 10.1.107 in /cdk
2022-09-21 11:16:15 +02:00
.github upgrade github build pipeline 2022-09-18 12:09:12 +02:00
.vscode remove Live Server warn for missing body and head 2020-12-29 22:34:57 +01:00
cdk Bump constructs from 10.1.106 to 10.1.107 in /cdk 2022-09-20 17:58:31 +00:00
design add more assets 2020-12-27 15:20:52 +01:00
dist add index, gulp and initial folders 2020-12-26 21:08:02 +01:00
public og img, favicon and apple-touch-icon optimization 2020-12-29 10:16:31 +01:00
src optimize charset position 2022-03-20 12:50:18 +01:00
.eslintrc.json add eslint 2020-12-28 23:49:12 +01:00
.gitignore bump cdk package versions 2022-03-14 17:55:13 +01:00
CODE_OF_CONDUCT.md add CODE_OF_CONDUCT 2021-01-07 11:21:58 +01:00
LICENSE update license with year and name 2020-12-27 17:13:16 +01:00
README.md removed netlify references 2022-03-19 15:02:06 +01:00
gulpfile.js remove removeOptionalTags, closes #12 2021-02-05 13:35:12 +01:00
package-lock.json Merge pull request #88 from zeplia/dependabot/npm_and_yarn/eslint-plugin-import-2.26.0 2022-09-18 12:10:50 +02:00
package.json Merge pull request #88 from zeplia/dependabot/npm_and_yarn/eslint-plugin-import-2.26.0 2022-09-18 12:10:50 +02:00

README.md

MinWiz - Minimal starter kit for under 2 KB sites

Use this starter kit to create a viable, good looking, production-ready website whose entire size does not exceed 2 KB compressed when opened in a browser. Ideally, the total size of all assets (HTML, CSS, favicon, etc.) downloaded by the browser when opening the page will be under 2 KB. You can see a live version at MinWiz.com.

Getting started

Make sure you have Node and npm installed. Any version will do.

If you're doing web development you probably already have gulp-cli globally installed (you can test with gulp -v). If you don't have it, run npm install --global gulp-cli

  • clone the repo
  • install the dependencies with npm install
  • build the site (in the dist folder) with npm run build
  • at this point, the dist folder contains all assets in a minified form, ready to be copied/deployed to your web hosting service

If you want to live edit the site, there is a handy-dandy gulp dev command and the Live Server extension for VS Code is configured to open the site from dist folder. Run the command, click Go Live in the status panel of VS Code and you're good to go.

Contributing

If you have a creative idea for decreasing the size of the website feel free to submit a PR! You can learn how from this Step-by-step guide to contributing on GitHub.

If it's not obvious how your PR will help, please conceptually explain it. Ex:

As the stylesheet.css already includes the text "section {", rearranging the order in "section, p, h1," to "p, h1, section {" will pick-up more text during gzipping.

Please note that I'm using package-lock with lockfileVersion 2. If you submit a PR and you're using lockfileVersion 1, make sure not to include the package-lock.json file.

Thank you

CDK deployment notes

For cdk deploy to work we need to have a Github personal access token in the GITHUB_TOKEN variable:

echo export GITHUB_TOKEN=REPLACE_ME_WITH_THE_REAL_GITHUB_TOKEN >> ~/.bashrc