-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postcss errors silently ignored #749
Comments
Doesn't seem like those issues you mentioned are very related but I opened a PR that validates it is an object |
@DeMoorJasper with I've tried with I can post the exact errors I get and example config files if needed. Pretty sure it's my fault but since everything used to work fine on |
Why can not we support function PosctCSS config? I have to call the function manually for now, which is ridiculous: module.exports = require('@1stg/postcss-config')({ env: process.env.NODE_ENV }) |
This is a 🙋 feature request I think.
🎛 Configuration (postcss.config.js)
Parcel only works if
postcss.config.js
exports a direct object, not a function.🤔 Expected Behavior
I think it would be helpful to the user, in case parcel does detect a postcss config, or any other supported transform config, to report errors back to the user, instead of silently ignoring them. Something along the line of
Parcel detected configuration for postcss, but was not able to use it: <error with stack trace if available>
.😯 Current Behavior
Parcel does not give any error, and just bundles the css unprocessed.
💁 Possible Solution
The underlying problem is that parcel silently ignores the error and doesn't give useful feedback that would help understand what is happening. If a configuration for a particular transform is detected but fails to run, parcel should tell the developer that instead of ignoring it. I haven't looked into the source code of parcel yet, but happy to start a PR if you point me in the right direction.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: