Basic Webpack 5 setup for small JavaScript projects.
How to use it:
- Click the green "Use this template" button on GitHub
- Create your new repository
- Clone your new repository to your computer
Then in the terminal:
npm install ← Install dependencies npx eslint src/ ← Check your code with ESlint npx prettier -write src/ ← Run Prettier npm run dev ← development with auto refresh npm run build ← production files
Files you will work with:
src/index.js your JavaScript code src/style.css your styles src/index.html your html
The rest are just configuration files.
Enjoy.