Skip to content

Commit

Permalink
feat!: remove autoprefixer
Browse files Browse the repository at this point in the history
our browser support long ago outpaced how modern our CSS is, and browsers no longer use vendor prefixes for new features.
  • Loading branch information
apaleslimghost committed Oct 17, 2024
1 parent 1a53c64 commit 4be2c43
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 54 deletions.
48 changes: 1 addition & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/dotcom-build-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"webpack": "5.x"
},
"dependencies": {
"autoprefixer": "^10.2.5",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^7.0.0",
"mini-css-extract-plugin": "^2.9.1",
Expand Down
6 changes: 0 additions & 6 deletions packages/dotcom-build-sass/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ export class PageKitSassPlugin {
// Allow @import of CSS files from node_modules
// https://github.com/postcss/postcss-import
require('postcss-import')(),
// Add vendor prefixes automatically using data from Can I Use
// https://github.com/postcss/autoprefixer
require('autoprefixer')(),
// Ensure that the final result is as small as possible. This can
// de-duplicate rule-sets which is useful if $o-silent-mode is toggled.
// https://github.com/cssnano/cssnano
]
},
implementation: require('postcss')
Expand Down

0 comments on commit 4be2c43

Please sign in to comment.