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: docs/build.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -80,10 +80,16 @@ You can define CLI options in this file.
80
80
81
81
#### entry
82
82
83
-
Type: `string`
83
+
Type: `string``Array``Object`
84
84
85
85
It's the first argument of `vue build` command, eg: `vue build entry.js`. You can set it here to omit it in CLI arguments.
86
86
87
+
The single-component mode (`--mount`) will not work if you set `entry` to an `Array` or `Object`.
88
+
89
+
-`Array`: Override `webpackConfig.entry.client`
90
+
-`Object`: Override `webpackConfig.entry`
91
+
-`string`: Added to `webpackConfig.entry.client` or used as `webpackConfig.resolve.alias['your-tasteful-component']` in single-component mode.
92
+
87
93
#### port
88
94
89
95
Type: `number`<br>
@@ -143,7 +149,7 @@ PostCSS options, if it's an `Array` or `Function`, the default value will be ove
143
149
144
150
#### html
145
151
146
-
Type: `Object`
152
+
Type: `Object``Array`
147
153
148
154
[html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) options, use this option to customize `index.html` output, default value:
149
155
@@ -176,6 +182,13 @@ Type: `boolean`
176
182
177
183
In production mode, all generated files will be compressed and produce sourcemaps file. You can use `--disableCompress` to disable this behavior.
178
184
185
+
#### hmrEntries
186
+
187
+
Type: `Array`<br>
188
+
Default: `['client']`
189
+
190
+
Add `webpack-hot-middleware` HMR client to specific webpack entries. By default your app is loaded in `client` entry, so we insert it here.
0 commit comments