/express-webpack-starter

Use webpack in traditional multipage application with express.

Primary LanguageJavaScriptMIT LicenseMIT

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