- React 17
- Webpack 5
- cssloader and styleloader
- Node (Make sure you have the node 12+ installed)
- Clone the repository
gh repo clone hassanamjad91/webpack5-boilerplate
(or if you're not using GitHub CLI:git clone git@github.com:hassanamjad91/webpack5-boilerplate.git
) - If you're using NVM run
nvm use
inside project directory to use node version set in.nvmrc
file - Run
npm install
ornpm i
to install all the dependencies - To begin development task, run
npm start
- Open http://localhost:8080
npm clean
- delete thedist
foldernpm start
- start the dev server and watch for changesnpm run build
- create a production ready build indist
folder