# Local compilation
To enhance the development experience of large Weixin Mini Program projects and reduce compilation-time wait times, the developer tools have added local compilation capabilities that allow developers to specify lists of compiled pages and avoid compiling entire Mini Program code files.
# Forward preparation
- Download and install the developer tools
1.05.2107090or above, and download the download for .
# How to turn on local compilation
# 1. Add a compilation mode to the WeChat developer tools.

# 2. Tick local compilation.

# 3. If you need to associate more than one page, click + to add.

# 4. Save and select
After saving the compilation mode, select it, and re-compile`once, and enter the local compilation mode.

# Local compilation mode
# The Principles of Local Compilation
When entering local compilation mode, the developer tools initiatecode dependency analysisbased on code dependencies analysisThe result of selects the code files involved in locally compiling the configuration page list (including pages js, wxml, wss, json, ws, and the components and other code files they rely on) and compiles.

# Page Access
In local compilation mode, the emulator can only access the locally compiled page list configuration page. Access to other pages will display an error that says page did not find .

# Preview and real-world debugging
Local compilation also works when you click on preview or real-world debugging,The tool only compiles and uploads **partially compiles the selected code file ** (source file is uploaded), so the code package size becomes much smaller, and the waiting time for compilation is greatly reduced.

# upload
In order not to affect the publication of Weixin Mini Program, local compilation does not work for the upload operation.