# Ionic3 to Ionic4 Migration - css file

**URL:** <https://forum.ionicframework.com/t/ionic3-to-ionic4-migration-css-file/196390>\
**Category:** Ionic Angular\
**Created:** [September 16, 2020, 9:19pm UTC](https://forum.ionicframework.com/t/ionic3-to-ionic4-migration-css-file/196390 "2020-09-16T21:19:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakesh76](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rakesh76](https://forum.ionicframework.com/u/rakesh76)\
**Post date:** [September 16, 2020, 9:19pm UTC](https://forum.ionicframework.com/t/ionic3-to-ionic4-migration-css-file/196390/1 "2020-09-16T21:19:17Z")

</div>

We are migrating our project from ionic3 to ionic4. in Ionic3 we used ionic-app-scripts.js to generate our build distribution. As per my understanding for ionic4 it doesn’t required ionic-app-scripts. When I am creating ionic4 build distribution, I don’t see any main.css file is getting generated. I am not sure whether it’s required or not.  
what’s the best way to generate ionic4 distribution which includes all our stylesheet ?  
Appreciate your input or any online documentation for this issue.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [September 16, 2020, 10:52pm UTC](https://forum.ionicframework.com/t/ionic3-to-ionic4-migration-css-file/196390/2 "2020-09-16T22:52:13Z")

</div>

> [@rakesh76](#):
>
> We are migrating our project from ionic3 to ionic4

“Ionic 4” is obsolete, and you don’t really want to be targeting it. Let’s say for the sake of discussion that you’re trying to bring a project from being an “ionic-angular” (v3) project to an “angular” (modern) project.

> [@rakesh76](#):
>
> As per my understanding for ionic4 it doesn’t required ionic-app-scripts.

Right. The work that used to be done by ionic-app-scripts is now delegated to Angular CLI, so you can refer to its documentation for more information.

> [@rakesh76](#):
>
> I don’t see any main.css file is getting generated.

Is this of concern for you simply because of unfamiliarity, or are you dependent on such a file existing?

> [@rakesh76](#):
>
> what’s the best way to generate ionic4 distribution which includes all our stylesheet ?

Per-component styles go in files referenced by the `styleUrls` in the `@Component` decorator of the component. Global styles go in `global.scss`. Theming variables go in `theme/variables.scss`.

---

<div class="post-metadata">

**Author:** ![rakesh76](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rakesh76](https://forum.ionicframework.com/u/rakesh76)\
**Post date:** [September 17, 2020, 2:27pm UTC](https://forum.ionicframework.com/t/ionic3-to-ionic4-migration-css-file/196390/3 "2020-09-17T14:27:08Z")

</div>

Thanks for your input.
