Skip to content

A boilerplate of Vanilla-JavaScript, SCSS with Webpack for MPA (multi page application)

Notifications You must be signed in to change notification settings

lechatthecat/vanilla-javascript-boilerplate-spring-boot

 
 

Repository files navigation

Vanilla-JavaScript-boilerplate-springboot

A MPA (Multi Page Application) boilerplate of Vanilla-JavaScript, SCSS with Webpack 5 with Springboot.

Environment

  • Visual Studio Code
  • node v12

Create development environment

  1. Install Visual Studio Code (Version: 1.4)

  2. Install npm packages

  • Check the node version as follows. Maybe use nvm and install node v12 would be more convenient.
node -v
v12.16.3

Then install npm packages:

npm i

The build js/scss as follows:

npm run build
  1. Start local development environment
  • Open this project with vscode and press on F5 on your keyboard. Then this app should be working on: http://localhost:8080
  1. Build commands
  • There are 3 build commands.
npm run build
npm run build:production
npm run watch
  1. Add html pages
  • Add new html page under src/main/resources/templates directory, then add new entry on webpack.common.js.

  • Auto format setting is writtem on settings.json in .vscode.

  1. Browser compatibility
  • Compatibility can be configured on .browserslistrc. Most browsers should be covered with current configuration.
  • babel(JavaScript), postcss-loader(css), .browserslistrc converts js/css codes to support backward compatibility.

About

A boilerplate of Vanilla-JavaScript, SCSS with Webpack for MPA (multi page application)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.1%
  • Java 31.0%
  • HTML 6.6%
  • SCSS 3.3%