mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
refactor(): add scss usage deprecation warning (#19238)
This commit is contained in:
5
core/src/themes/ionic.deprecation.scss
Normal file
5
core/src/themes/ionic.deprecation.scss
Normal 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.";
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
@import "./ionic.deprecation";
|
||||
|
||||
// Gets the active color's css variable from a variation. Alpha is optional.
|
||||
// --------------------------------------------------------------------------------------------
|
||||
// Example usage:
|
||||
|
@ -1,3 +1,4 @@
|
||||
@import "./ionic.deprecation";
|
||||
|
||||
// String Utility Functions
|
||||
// --------------------------------------------------------------------------------
|
||||
|
@ -1,3 +1,4 @@
|
||||
@import "./ionic.deprecation";
|
||||
|
||||
@mixin input-cover() {
|
||||
@include position(0, null, null, 0);
|
||||
|
1
core/src/themes/ionic.skip-warns.scss
Normal file
1
core/src/themes/ionic.skip-warns.scss
Normal file
@ -0,0 +1 @@
|
||||
$IONIC: true;
|
@ -1,3 +1,5 @@
|
||||
@import "./ionic.deprecation";
|
||||
|
||||
// Ionic Theme
|
||||
// -------------------------------------------------------------------------------------------
|
||||
// This file contains the theme variables shared
|
||||
|
@ -64,7 +64,9 @@ export const config: Config = {
|
||||
]},
|
||||
],
|
||||
plugins: [
|
||||
sass()
|
||||
sass({
|
||||
injectGlobalPaths: ['src/themes/ionic.skip-warns.scss']
|
||||
})
|
||||
],
|
||||
outputTargets: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user