This is JavaScript Multipage Boilerplate using Webpack 5. In this boilerplate, we have setup
- HTML Templates
- SCSS and assets (images)
- Babel
- Hot Reload
- ESLInt and prettier
- Lint-staged and husky (Setup pre-commit hook to run linter before each commit)
- Github Actions (Run linter on whenever code is pushed or PR is created)
- Navigate to the project directory
cd javascript-boilerplate
- Run command
npm install
to install all the dependencies - Run command
npm run dev
to run the project in the dev environment
Open the webpack.config.js
file,
-
add page name in
pages
array.const pages = ['signup'];
-
add a new entry in the
entry
objectentry: { signup: './src/signup/signup.js', },
-
Restart server and open the new module
Example URL for signup page:
localhost:port/signup.html