A simple webpack boilerplate for quickly setting up and bundling your web projects.
This repository provides a basic webpack boilerplate that allows you to quickly set up and bundle your web projects. It includes configurations for bundling JavaScript, CSS, and image assets, as well as setting up a development server for live reloading.
- Bundles JavaScript, CSS, and image assets.
- Supports development mode with live reloading.
- Provides a simple HTML template to get started.
- Node.js and npm installed on your machine.
-
Clone this repository to your local machine:
git clone https://github.com/IsaMarvin/webpack-boilerplate.git
-
Navigate to the project directory:
cd webpack-boilerplate
-
Install the project dependencies:
npm install
-
Start the development server:
npm start
This will launch the development server and open your default web browser to view the application at http://localhost:8080.
-
Begin developing your application by editing the
src/index.js
file. You can also modify thesrc/style.css
file to customize the styles. -
As you make changes to the source files, the development server will automatically update and reflect the changes in the browser.
-
To build the production-ready bundle, run:
npm run build
This will generate optimized files in the
dist
directory that you can deploy to a web server.
👤 IsaMarvin
- GitHub: IsaMarvin
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
If you like this project just give it a star.
- Guide Webpack
This project is MIT licensed.