Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 1e2035e

Browse files
StefanReinimhoffd
authored andcommitted
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 #1359 ionic-team/ionic-framework#13763
1 parent 53fc341 commit 1e2035e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sass.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ function renderSassSuccess(context: BuildContext, sassResult: Result, sassConfig
281281

282282
const postcssOptions: any = {
283283
to: basename(sassConfig.outFile),
284-
map: autoPrefixerMapOptions
284+
map: autoPrefixerMapOptions,
285+
from: void 0
285286
};
286287

287288
Logger.debug(`sass, start postcss/autoprefixer`);

0 commit comments

Comments
 (0)