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
First of all, you should clone this repo
git clone https://github.com/Cherish-xzw/express-webpack-starter
After that, you can run
$ yarn
$ yarn dev # start server with development mode
$ yarn start # start server with production mode
MIT