You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a simple wrapper middleware for webpack. It serves the files emitted from webpack over a connect server.
15
17
@@ -19,13 +21,13 @@ It has a few advantages over bundling it as files:
19
21
* If files changed in watch mode, the middleware no longer serves the old bundle, but delays requests until the compiling has finished. You don't have to wait before refreshing the page after a file modification.
20
22
* I may add some specific optimization in future releases.
21
23
22
-
## Installation
24
+
<h2align="center">Install</h2>
23
25
24
26
```
25
27
npm install webpack-dev-middleware --save-dev
26
28
```
27
29
28
-
## Usage
30
+
<h2align="center">Usage</h2>
29
31
30
32
```javascript
31
33
var webpackMiddleware =require("webpack-dev-middleware");
@@ -168,14 +170,50 @@ app.use((req, res) => {
168
170
})
169
171
```
170
172
173
+
<h2 align="center">Contributing</h2>
174
+
175
+
Don't hesitate to create a pull request. Every contribution is appreciated. In development you can start the tests by calling `npm test`.
0 commit comments