PostCSS Could Generate Wrong Source Map error

I got the following warning when building an Ionic app using cordova version 3.* using the command ionic cordova build browser.

[12:11:10] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[12:11:13] sass finished in 2.67 s

As the warning says above it has been fixed by adding from: undefined in the postcssOptions object in line 233 of node_modules/@ionic/app-scripts/dist/sass.js file as can be seen below.

var postcssOptions = {
 from: undefined,
 to: path_1.basename(sassConfig.outFile),
 map: autoPrefixerMapOptions

Though there’s a drawback for this temporary fix as the changes will be lost if in time you need to update the packages, reinstall them or installing in a new project.