An enhanced webpack setup to start with. Use this to create HTML/JS/SASS applications
- Webpack 5
- Babel transpiler
- SASS & Autoprefix (PostCSS)
- Webpack bundle analyzer
- Prettier
- Commitizen to enforce conventional commit message standards
- Husky for commit linting
- Install commitizen globally
npm install -g commitizen - Then, use
git czto commit changes - Commit messages must follow angular conventional commit standards
- To ensure code consistency, install
prettier&editorconfigextensions for your editor - Then, enable
Format on saveoption in editor settings - Additionally, Prettier auto formats all files as you commit
- HTML files are served without extension
yarn devStarts the webpack dev server in port 8000 ( its a default port )yarn startRuns webpack production build & Serves it using a simple http server in port 8000yarn buildRuns webpack production build.yarn analyzeGenerates webpack bundle report
HOST- Host namePORT- Development portGENERATE_MANIFEST- Whether to generate build manifestGENERATE_BUILD_SOURCEMAP- Whether to generate source map in production build