express-webpack-starter shows how to use webpack in multipage application with express.
- 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
The default branch does not set any front-end library , you can choose a library in these branch
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
MIT