# Au2 PreTask Equivalent

**URL:** <https://discourse.aurelia.io/t/au2-pretask-equivalent/5080>\
**Category:** vNext\
**Created:** [January 24, 2023, 6:35pm UTC](https://discourse.aurelia.io/t/au2-pretask-equivalent/5080 "2023-01-24T18:35:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liidtke](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/liidtke/32/1650_2.png) [@liidtke](https://discourse.aurelia.io/u/liidtke)\
**Post date:** [January 24, 2023, 6:35pm UTC](https://discourse.aurelia.io/t/au2-pretask-equivalent/5080/1 "2023-01-24T18:35:34Z")

</div>

What is the equivalent to Aurelia1 PreTask?

```auto
        class FrameworkConfiguration 
	preTask(task: Function): FrameworkConfiguration;
	/**
	 * Adds an async function that runs after the plugins are run.
	 * @param task The function to run after start.
	 * @return Returns the current FrameworkConfiguration instance.
	 */

```

Thanks!

---

<div class="post-metadata">

**Author:** ![Sayan751](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sayan751/32/1861_2.png) [@Sayan751](https://discourse.aurelia.io/u/Sayan751)\
**Post date:** [January 24, 2023, 6:47pm UTC](https://discourse.aurelia.io/t/au2-pretask-equivalent/5080/2 "2023-01-24T18:47:40Z")

</div>

Hi @liidtke! I think you are looking for [App Tasks](https://docs.aurelia.io/getting-to-know-aurelia/app-tasks).
