- Clone this repo using
git clone https://github.com/oksana-dev/webpack-5-boilerplate.git <YOUR_PROJECT_NAME>
- Move to the directory:
cd <YOUR_PROJECT_NAME>
. - Run
npm i
in order to install dependencies.
At this point you can run npm start
to see the example app at http://localhost:3300
.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3300 to view it in the browser.
The page will reload if you make edits.
Builds the app for production to the dist
folder.
It correctly bundles JavaScript, SCSS, images in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
In order to use this boilerplate with React or TypeScript change the branch to react
or typescript
Love this webpack-5 boilerplate and want to help? Thanks so much, there's something to do for everybody!