-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement tool to help with **/*.scss
-> styleUrls
migration
#12
Comments
Would this be possible using TSLint replacements? cc @cwoolum |
There is a CSS AST Parser and Lexer in Codelyzer so that should work. See https://github.com/mgechev/codelyzer/blob/master/src/noUnusedCssRule.ts for an example of the CSS Tree being walked. They use https://github.com/chrisdickinson/cssauron to parse the CSS |
Would it make more since to have this be a cli script. I think doing this through a JS / TS directly would be much easier and be ok since it's a one time run |
I'd like to remain consistent on our approach with this project. |
So is this feature coming in or not? |
I have not figured out a way to do this but if you figure it out and would like to submit a PR, we would be happy to look at it! |
https://github.com/ionic-team/ionic/blob/master/angular/BREAKING.md#theming
*.scss
files next to pages we can assume can be automatically migrated, which means the following:page-*
selectorscss
file tostyleUrls
of the page component metadataThe text was updated successfully, but these errors were encountered: