From 1e2035e40068a42121ae49edefe9730990725d16 Mon Sep 17 00:00:00 2001 From: Stefan Rein Date: Fri, 24 Aug 2018 21:29:57 +0200 Subject: [PATCH] fix(sass): remove PostCSS warning (#1364) This removes following warning: Remove warning: Without `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning `from: the input file name (most runners set it automatically).` Source: https://github.com/postcss/postcss Fixes #1359 #13763 https://github.com/ionic-team/ionic-app-scripts/issues/1359 https://github.com/ionic-team/ionic/issues/13763 --- src/sass.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sass.ts b/src/sass.ts index dd187460..de972df7 100755 --- a/src/sass.ts +++ b/src/sass.ts @@ -281,7 +281,8 @@ function renderSassSuccess(context: BuildContext, sassResult: Result, sassConfig const postcssOptions: any = { to: basename(sassConfig.outFile), - map: autoPrefixerMapOptions + map: autoPrefixerMapOptions, + from: void 0 }; Logger.debug(`sass, start postcss/autoprefixer`);