You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the browserslist setting in package.json, I can tell parcel to add vendor prefixes and use syntax lowering to support older browsers ( https://parceljs.org/languages/css/#browser-targets ). However, it looks like this is not possible for all CSS features; for example CSS Layers and CSS Grid seem to be left unchanged even if I specify IE 6 as target, which definitely doesn't support either. How can I make Parcel warn me in those cases.
The closest thing I found is the doiuse PostCSS plugin, but at least with a simple configuration as described in https://parceljs.org/languages/css/#postcss (see below), it seems to run on the source files before Parcel does its thing, and thus also warns on stuff Parcel can handle for me.
To be clear, this is not a request or expectation to magically support every CSS feature in every browser, just a request to tell me when I (might) need to take action Also, no, I'm not targeting IE 6, but this was an easy test case to see if Parcel would warn me that it's obviously not going to work
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using the
browserslistsetting inpackage.json, I can tell parcel to add vendor prefixes and use syntax lowering to support older browsers ( https://parceljs.org/languages/css/#browser-targets ). However, it looks like this is not possible for all CSS features; for example CSS Layers and CSS Grid seem to be left unchanged even if I specify IE 6 as target, which definitely doesn't support either. How can I make Parcel warn me in those cases.The closest thing I found is the
doiusePostCSS plugin, but at least with a simple configuration as described in https://parceljs.org/languages/css/#postcss (see below), it seems to run on the source files before Parcel does its thing, and thus also warns on stuff Parcel can handle for me.To be clear, this is not a request or expectation to magically support every CSS feature in every browser, just a request to tell me when I (might) need to take action
Also, no, I'm not targeting IE 6, but this was an easy test case to see if Parcel would warn me that it's obviously not going to work
postcss.config.mjsI used:Beta Was this translation helpful? Give feedback.
All reactions