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 e55f2c3 commit 7c4ab53Copy full SHA for 7c4ab53
1 file changed
migration-v4.md
@@ -324,6 +324,26 @@ module.exports = {
324
};
325
```
326
327
+Provide an array of objects in case you have multiple static folders:
328
+
329
+```js
330
+module.exports = {
331
+ //...
332
+ devServer: {
333
+ static: [
334
+ {
335
+ directory: path.join(__dirname, "assets"),
336
+ publicPath: "/serve-public-path-url",
337
+ },
338
339
+ directory: path.join(__dirname, "css"),
340
+ publicPath: "/other-serve-public-path-url",
341
342
+ ],
343
344
+};
345
+```
346
347
- Default value of the `static` option is `path.resolve(process.cwd(), 'public')` directory and enabled by default.
348
- `static.watch` is enabled by default.
349
- The `socket` option was renamed to `ipc` (also supports `string` type, i.e. path to unix socket):
0 commit comments