File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,26 @@ module.exports = {
324
324
};
325
325
```
326
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
+
327
347
- Default value of the ` static ` option is ` path.resolve(process.cwd(), 'public') ` directory and enabled by default.
328
348
- ` static.watch ` is enabled by default.
329
349
- The ` socket ` option was renamed to ` ipc ` (also supports ` string ` type, i.e. path to unix socket):
You can’t perform that action at this time.
0 commit comments