webpack @ Tue, Feb 21, 2023 9:13 PM
webpack @ Thu, Mar 9, 2023 2:40 PM
Expand 9 lines ...
10
## webpack-dev-server
10
## webpack-dev-server
11

11

12
+ [webpack dev server cookie domain rewrite](https://github.com/chimurai/http-proxy-middleware#http-proxy-options:~:text=option.cookieDomainRewrite)
12
+ [webpack dev server cookie domain rewrite](https://github.com/chimurai/http-proxy-middleware#http-proxy-options:~:text=option.cookieDomainRewrite)
13
+

14
+

15
+
## clean-webpack-plugin
16
+

17
+
> [Deprecate plugin in favor `output.clean`](https://github.com/johnagan/clean-webpack-plugin/issues/197)
18
+

19
+
From webpack v5, you can remove the clean-webpack-plugin plugin and use the output.clean option in your webpack config:
20
+
```js
21
+
 output: {
22
+
    filename: 'utils.min.js',
23
+
    clean: true,
24
+
 }
25
+
```
26
+

27
+
## pnpm 没有 webpack 的类型声明
28
+

29
+
随便搞个 d.ts 然后加个`三斜线指令`,就会有提示了。
30
+
```ts
31
+
/// <reference path="/node_modules/webpack/types.d.ts"/>
32
+
```