We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe4c16 commit 6bbcd2cCopy full SHA for 6bbcd2c
README.md
@@ -106,11 +106,13 @@ this option.
106
Example:
107
108
```js
109
-import config from './webpack.config.js';
+const config = require('./webpack.config.js');
110
+const koaWebpack = require('koa-webpack');
111
-app.use(middleware({
112
- config: config
113
-}))
+koaWebpack({ config })
+ .then((middleware) => {
114
+ app.use(middleware);
115
+});
116
```
117
118
### devMiddleware
0 commit comments