/webpack5-skeleton

This is a Webpack5 project skeleton for a multi-page project

Primary LanguageJavaScript

🔥 Webpack5 project skeleton

Structure project

  • src/pages/ the directory for your html page
  • src/styles/ for storing css and scss style files. We can have any number of nested directories. You need to connect your own style files in the app.scss file
  • src/scripts/ for storing js scripts. You need to connect your own style files in the app.js file
  • src/fonts/ for storing fonts

Run

yarn serve - run develop mode

yarn build - build production bundle

Heroku deploy

The project is configured for quick integration into Heroku. Add the following buildpacks to your application:

  • nodejs
  • heroku-buildpack-nginx