Angular 6+

ng config defaults.styleExts sass

Ionic 4+

ionic config set defaults.styleExts sass