https://github.com/arwl2016/ps-webpack-eames-3
https://github.com/arwl2016/ps-webpack-eames-3
development express node server webpack webpack-connect-middleware
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arwl2016/ps-webpack-eames-3
- Owner: ARWL2016
- Created: 2017-02-13T11:24:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T06:36:14.000Z (over 9 years ago)
- Last Synced: 2025-10-07T07:40:18.574Z (9 months ago)
- Topics: development, express, node, server, webpack, webpack-connect-middleware
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##Webpack Fundamentals
###Part 3: Webpack Connect Middleware
###Packages
- ejs
- express
- morgan (the logging package for express)
- webpack-dev-middleware https://github.com/webpack/webpack-dev-middleware
---
###Server Options
- The Webpack Connect Middleware can be used with Node and Express
- Other backends could be used with webpack in watch mode
- WDM is a way to create a development server while using express
- We do this with an if statement in server.js. If `env` is set to 'development' it will add properties to `webpack.config`. This way we don't need to change the config file.
- Using WDM, we must define the 'publicPath'
- Using this setup we can run `node server.js` and it will build the bundle