From 29873ae96611ae209ca4b065fd9940d6b7b96bda Mon Sep 17 00:00:00 2001 From: Stefan Rein Date: Tue, 9 Jan 2018 12:35:04 +0100 Subject: [PATCH] Remove PostCSS warning 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`);