Skip to content

Commit

Permalink
Remove PostCSS warning
Browse files Browse the repository at this point in the history
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 ionic-team#1359 #13763
ionic-team#1359
ionic-team/ionic-framework#13763
  • Loading branch information
StefanRein authored Jan 9, 2018
1 parent 9ab6200 commit 29873ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 29873ae

Please sign in to comment.