> For the complete documentation index, see [llms.txt](https://yyaozhibo.gitbook.io/qian-duan-xue-xi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yyaozhibo.gitbook.io/qian-duan-xue-xi/webpack/he-xin-gai-nian/ru-kou-entry.md).

# 入口（entry）

入口起点指示 webpack 应该使用哪个模块，来作为构建其内部[依赖图（dependency graph）](https://webpack.docschina.org/concepts/dependency-graph/)的开始

进入入口起点后，webpack 会找出有哪些模块和库是入口起点（直接和间接）依赖的

默认值是 `./src/index.js`，但你可以通过在 `webpack configuration` 中配置 `entry` 属性，来指定一个（或多个）不同的入口起点。例如：

`webpack.config.js`

```javascript
module.exports = {
  entry: './path/to/my/entry/file.js'
}
```
