Skip to content

Implement tool to help with **/*.scss -> styleUrls migration #12

@imhoffd

Description

@imhoffd

https://github.com/ionic-team/ionic/blob/master/angular/BREAKING.md#theming

Previously all scss files in the src directory were imported. Now each scss file should be included for the component via Angular's styleUrls metadata.

*.scss files next to pages we can assume can be automatically migrated, which means the following:

  • Remove root page-* selector
  • If Sass exists outside the selector, warn about it because we can't/shouldn't migrate it
  • Add the relative file path to the scss file to styleUrls of the page component metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions