refactor(): add scss usage deprecation warning (#19238)

This commit is contained in:
Manu MA
2019-08-30 20:20:55 +02:00
committed by GitHub
parent d1ee36b2c8
commit c7b302c7a6
7 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,5 @@
$IONIC: false !default;
@if not $IONIC {
@warn "[DEPRECATED] SCSS within ionic/core should not be imported. Next major release will remove all scss support.";
}

View File

@ -1,3 +1,5 @@
@import "./ionic.deprecation";
// Gets the active color's css variable from a variation. Alpha is optional.
// --------------------------------------------------------------------------------------------
// Example usage:

View File

@ -1,3 +1,4 @@
@import "./ionic.deprecation";
// String Utility Functions
// --------------------------------------------------------------------------------

View File

@ -1,3 +1,4 @@
@import "./ionic.deprecation";
@mixin input-cover() {
@include position(0, null, null, 0);

View File

@ -0,0 +1 @@
$IONIC: true;

View File

@ -1,3 +1,5 @@
@import "./ionic.deprecation";
// Ionic Theme
// -------------------------------------------------------------------------------------------
// This file contains the theme variables shared

View File

@ -64,7 +64,9 @@ export const config: Config = {
]},
],
plugins: [
sass()
sass({
injectGlobalPaths: ['src/themes/ionic.skip-warns.scss']
})
],
outputTargets: [
{