Skip to content

Use webpack in traditional multipage application with express.

License

Notifications You must be signed in to change notification settings

baobao12356/express-webpack-starter

 
 

Repository files navigation

express-webpack-starter

Build Status

express-webpack-starter shows how to use webpack in multipage application with express.

Features

  • Hot reload with webpack dev server
  • CSS extraction
  • Sepreate common chunks and application code
  • Long term cache with contenthash in css and js files
  • Support .vue files and es2015+ syntax
  • Gzip compression when bundles are too big

Note

The default branch does not set any front-end library , you can choose a library in these branch

Usage

First of all, you should clone this repo

git clone --depth=1 -b <branch> https://github.com/Cherish-xzw/express-webpack-starter MyAwesomeApp

After that, you can run

$ yarn
$ yarn dev # start server with development mode
$ yarn start # start server with production mode

Lisence

MIT

About

Use webpack in traditional multipage application with express.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.6%
  • HTML 8.0%
  • CSS 3.4%