icelam / error-document

HTML source of error document used in my personal website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Document Template

HTML source of error document used in my personal website

Preview

Setup

Below shows some basic setup steps.

Node version

This project is developed using Node.js 12. The version is already specified in the .nvmrc file. Suggest to run nvm use when you enter the project folder.

Install packages need for the project

Install yarn packages in project root folder first using yarn install.

To start the project

Run yarn start in project root folder.

To build production

Run yarn build in project root folder.

Configurations

Below shows some available configuration options.

To add / edit Webpack alias

To add or edit Webpack alias, modify resolve.alias in webpack/webpack.base.conf.js.

To add Google Tag Manager ID

The APP_GTM_ID is located in .env file.

Notes

Webpack is configured to build and output a single HTML file.

  • html-inline-css-webpack-plugin is used to inject CSS inline
  • ./webpack/utils/InlineChunkHtmlPlugin.js is introduced from react-dev-utils to inject JS files as inline chunk. The file is slightly modified to add ability to clean up assets. (TODO: Code a custom plugin)

About

HTML source of error document used in my personal website


Languages

Language:JavaScript 65.9%Language:SCSS 22.0%Language:HTML 11.2%Language:Shell 1.0%