Website boilerplate with webpack 5 using Babel, PostCSS, Sass and hot dev server with production and dev configs.
PWA supported :)(https://web.dev/progressive-web-apps/)
Clone this repo and npm install.
npm i
npm start
You can view the development server at localhost:8080
.
npm run build
Note: Install http-server globally to deploy a simple server.
npm i -g http-server
You can view the deploy by creating a server in dist
.
cd dist && http-server
- webpack - Module and asset bundler
- Babel - Transpile JS files
- Sass - CSS Preprocessor
- PostCSS Process CSS with PostCSS with JS
- ESlint - Enforce styleguide across application
- Prettier - Code formatter
- Husky - Git hooks ( prettier, eslint use before commit)
- Linstaged - Run linters against staged git files