A simple webpack starter kit. Babel, TypeScript, ESLint, PostCSS, Jest, Environment variables, Git hooks, etc.
Like the following directory structure, you can have multiple HTML pages (/index.html
and /doughnut/index.html
).
src/
├── assets
│ ├── scripts
│ │ └── index.ts
│ └── styles
│ └── index.css
├── doughnut
│ ├── index.css
│ ├── index.html
│ └── index.ts
├── index.html
└── static
├── favicon.ico
└── images
If you want no SPA, no SSR, and a simple site, I hope this starter might be one of several choices for you.
- Node.js
- I recommend using nodenv
$ npm ci
$ npm run dev
$ npm run test
Development build:
$ npm run build
Production build:
$ npm run build:prod
As you can see in the package.json
, the only difference is the value of APP_ENV
.
Your commit messages must meet the conventional commit format. For more detail, check commitlint
If you want to copy assets, you can use the src/static
directory. For more detail, src/static/README.md
.
If you are using VS Code, try to enable .vscode/settings.json
.
cp .vscode/settings.json.example .vscode/settings.json
This project is an MIT-licensed open source project. See LICENSE for more information.