Skip to main content

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 npm to install all dependencies
  • Run npm 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.