A modern, ready-to-use Webpack starter template for kickstarting JavaScript, HTML, and CSS projects. Designed to be lightweight, fast, and easy to customize.
- ✅ Webpack 5
- ✅ Development & Production Modes
- ✅ Babel (for ES6+)
- ✅ Hot Module Replacement (HMR)
- ✅ CSS Loader, Style Loader, & Sass
- ✅ HTML Webpack Plugin (auto-generates
index.html) - ✅ Asset loader (images, fonts, etc.)
- ✅ CleanWebpackPlugin (cleans
dist/before build) - ✅ Routing SPA (Single Page Application)
git clone https://github.com/RenzWay/webpack-starter.git
cd webpack-starternpm install
# or
yarn installRun the development server
npm run dev
# or
yarn devnpm run build
# or
yarn build
Modify the configuration in webpack.common.js as needed:
- Add new loaders (e.g., SASS, TypeScript, React, etc.)
- Add additional plugins (e.g., dotenv, terser, etc.)
- Change the
src/,dist/directories, orpublicPath
This project is suitable for:
- Developers who want to start a JavaScript project from scratch
- Learning practical Webpack setup
- Creating a flexible frontend boilerplate
License: MIT
Free to use and modify. See the LICENSE file for details.
zenrenz
🔗 GitHub: [https://github.com/RenzWay]
This is not an official Webpack project. Made by community for learning purposes.
If you find this repo useful, don't forget to give it a ⭐️ on GitHub!