We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When building a CSS file, Parcel adds some compatibility prefixes, but sometimes duplicates them.
Tried both from a Sass file and a plain CSS file.
{ "name": "parceltrial2", "version": "1.0.0", "description": "", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "Rem", "license": "ISC", "devDependencies": { "@parcel/transformer-sass": "^2.8.2" } }
body backdrop-filter: blur(10px)
parcel build main.sass && cat build/main.css
body { backdrop-filter: blur(20px); }
parcel build main.css && cat build/main.css
The output CSS should only have one -webkit-backdrop-filter:
-webkit-backdrop-filter
body{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)} /*# sourceMappingURL=main.css.map */
Each of the two commands stated above produced the same output:
body{-webkit-backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)} /*# sourceMappingURL=main.css.map */
Trying to minimize file sizes and redundancy.
See above.
The text was updated successfully, but these errors were encountered:
This is probably what happens, the transformer add prefixes and then the optimizer adds another one
-> parcel-bundler/lightningcss#403
@devongovett
Sorry, something went wrong.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
No branches or pull requests
🐛 bug report
When building a CSS file, Parcel adds some compatibility prefixes, but sometimes duplicates them.
Tried both from a Sass file and a plain CSS file.
🎛 Configuration (.babelrc, package.json, cli command)
package.json
main.sass
Command to build and output
parcel build main.sass && cat build/main.css
main.css
Command to build and output
parcel build main.css && cat build/main.css
🤔 Expected Behavior
The output CSS should only have one
-webkit-backdrop-filter
:😯 Current Behavior
Each of the two commands stated above produced the same output:
💁 Possible Solution
🔦 Context
Trying to minimize file sizes and redundancy.
💻 Code Sample
See above.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: