> For the complete documentation index, see [llms.txt](https://shenjunhong.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack.md).

# Webpack

- [PostCSS](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/postcss.md)
- [Webpack5 核心原理与应用实践-loader](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack5-he-xin-yuan-li-yu-ying-yong-shi-jian-loader.md)
- [Webpack5 核心原理与应用实践-plugin](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack5-he-xin-yuan-li-yu-ying-yong-shi-jian-plugin.md)
- [Webpack5 核心原理与应用实践](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack5-he-xin-yuan-li-yu-ying-yong-shi-jian.md)
- [区分](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/bundle-vs-chunk-vs-module.md)
- [升级详情](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack3-dao-4-sheng-ji-yi-lai.md)
- [treeShaking（树摇Tree Shaking）](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-zhi-treeshaking.md)
- [编写一个自己的webpack插件plugin](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-zhi-cha-jian.md)
- [代码分离(code-splitting)](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-dai-ma-fen-li.md)
- [webpack 打包优化](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-chang-yong-you-hua.md)
- [基础配置](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-chang-yong-pei-zhi.md)
- [webpack 打包优化](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-da-bao-you-hua.md)
- [webpack 工作原理](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-da-bao-yuan-li.md)
- [webpack 按需加载原理](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-an-xu-jia-zai-de-yuan-li.md)
- [webpack 热更新 HMR(Hot Module Replacement)](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-re-geng-xin-yuan-li.md)
- [缓存](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-huan-cun.md)
- [webpack 自定义 plugin](https://shenjunhong.gitbook.io/blog/yuan-ma/webpack/webpack-zi-ding-yi-plugin.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://shenjunhong.gitbook.io/blog/yuan-ma/webpack.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
