> For the complete documentation index, see [llms.txt](https://koii-network.gitbook.io/getting-started/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koii-network.gitbook.io/getting-started/microservices-and-tasks/task-development-guide/task-development-flow/compile-task.md).

# Compile Task

After you've created a task using the K2 task template as a guide, you'll need to compile it with Webpack into a single executable file.

Open up your terminal, and in the directory of your task:

* Run `yarn` to install all dependencies
* Run `yarn webpack` to compile code
* You should see a new directory `/dist`
* Your compiled executable is located in `/dist/main.js`

That's it! You've successfully compiled your task into a single executable file.
