> For the complete documentation index, see [llms.txt](https://azr.gitbook.io/webpack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://azr.gitbook.io/webpack/you-hua/wen-jian-fan-wei.md).

# 文件范围

### 对loader的优化

提高`test` 中对正则表达式更加准确的描述。

调整目录的结构，方便在配置`include`的时候缩小范围。

### 对resolve.modules的优化

使用绝对路径存放第三方模块

使用`__dirname`表示当前工作目录。

```
// 输出文件都放到 dist 目录下
path: path.resolve(__dirname, './dist'),
```

### 对resolve.alias的优化

通过对别名的设置，可以减少对整体文件的搜索力度。
