# How to add a custom task to ionic-webpack?

**URL:** <https://forum.ionicframework.com/t/how-to-add-a-custom-task-to-ionic-webpack/112808>\
**Category:** ionic-v3\
**Created:** [November 20, 2017, 10:30pm UTC](https://forum.ionicframework.com/t/how-to-add-a-custom-task-to-ionic-webpack/112808 "2017-11-20T22:30:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebush123](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sebush123](https://forum.ionicframework.com/u/sebush123)\
**Post date:** [November 20, 2017, 10:30pm UTC](https://forum.ionicframework.com/t/how-to-add-a-custom-task-to-ionic-webpack/112808/1 "2017-11-20T22:30:12Z")

</div>

hi forks,

how can i add custom tasks to ionics webpack. i need to build one more sass-\>css-files

---

<div class="post-metadata">

**Author:** ![sebush123](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sebush123](https://forum.ionicframework.com/u/sebush123)\
**Post date:** [November 21, 2017, 3:43pm UTC](https://forum.ionicframework.com/t/how-to-add-a-custom-task-to-ionic-webpack/112808/2 "2017-11-21T15:43:43Z")

</div>

in my package.json-scripts i can use these ionic hooks and build with grunt or similar:  
“ionic:watch:before”: “echo ‘##### ionic:watch:before #####’ && grunt”,  
“ionic:build:before”: “echo ‘##### ionic:build:before #####’ && grunt”,  
“ionic:build:after”: “echo ‘##### ionic:build:after #####’”,

RESOLVED/CLOSED

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:02pm UTC](https://forum.ionicframework.com/t/how-to-add-a-custom-task-to-ionic-webpack/112808/3 "2021-07-19T22:02:41Z")

</div>


