13.0.4
https://github.com/warent/vue-loader-bug1
Should throw an error because .postcssrc.js has bogus data
Everything runs fine
By the way this is a fresh vue init from the webpack template. No changes except to .postcssrc.js
So why should .postcssrc.js be ignored here?
It seems it was a conscious decision to catch and swallow that error:
https://github.com/vuejs/vue-loader/blob/master/lib/style-compiler/load-postcss-config.js#L14
But I'm not sure what was a wise decision.
Oh I misunderstood this earlier.
I don't think it's good to completely ignoring errors, but now we only have an error message to tell if the error is a bearable one. Depending on 'No PostCSS Config found' may seem ugly but it works for the current issue IMO.
Yes, please reconsider swallowing errors. I wasted several hours on this very simple issue bedeviling me because I wasn't getting any error indicating something was wrong, which means others might have a similar experience
yeah, I think we should do something about this.
A PR would also be welcome, of course :)
Just simply wrapped a error message #1095
Hope to be helpful.
Thanks.
Most helpful comment
yeah, I think we should do something about this.
A PR would also be welcome, of course :)