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
Copy file name to clipboardExpand all lines: README.md
+56-1Lines changed: 56 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
23
23
webpack dev server plugin for egg, support read file in memory and hot reload. [More Detail](http://hubcarl.github.io/blog/2017/04/15/egg-webpack/)
24
24
25
+
- support webpack native configuration by `webpack.webpackConfigList`
26
+
- when no config `webpack.webpackConfigList`, egg-webpack will dynamic create webpack config by `webpack.config.js(easywebpack)`, and start multiple process build.
25
27
26
28
## Install
27
29
@@ -41,15 +43,68 @@ exports.webpack = {
41
43
42
44
## Configuration
43
45
46
+
support native webpack config and easywebpack webpack config
47
+
44
48
```js
45
49
// {app_root}/config/config.default.js
46
50
exports.webpack= {
47
-
// port: 8090,
51
+
// port: 9000,
48
52
// proxy: true,
49
53
// webpackConfigList: [],
50
54
};
51
55
```
52
56
57
+
**port**: {Number}, default 9000. webpack dev server port, default 9000, when hava multile webpack config, the port incremented。
58
+
**proxy**: {Boolean}, default true. webpack compiled in a separate service inside, you can use project domain and port access static resources。
0 commit comments