-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
luoxue
committed
Dec 16, 2019
1 parent
8e5c678
commit f8c0a3a
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
## 课时 19:添加 webpack 配置检查命令 | ||
|
||
webpack-chain 的配置有一个很大的缺陷就是,你不能很直观的看出到底有哪些配置,除非你对所有配置都非常了解。所以这里我做了一个检查配置的命令 | ||
|
||
```bash | ||
webpack-box inspect > output.json # 导出所有配置到 output.json | ||
webpack-box inspect --rules # 查看所有 loader 列表 | ||
webpack-box inspect --rule babel # 查看指定 loader 配置 | ||
webpack-box inspect --plugins # 查看所有插件列表 | ||
webpack-box inspect --plugin mini-css-extract # 查看指定插件配置 | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters