Skip to content

Commit

Permalink
fix(PostCSS): disable "Complex selectors" warning
Browse files Browse the repository at this point in the history
We don't need an `:is()` polyfill, so the warning is just an
annoyance.

Also, remove explicit `autoprefixer` as it's included in
`postcss-preset-env`.
  • Loading branch information
maxpatiiuk committed Feb 20, 2024
1 parent febdd1d commit 5603847
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 157 deletions.
160 changes: 6 additions & 154 deletions specifyweb/frontend/js_src/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 specifyweb/frontend/js_src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
"@types/react-modal": "^3.13.1",
"@types/react-router-dom": "^5.3.3",
"@types/underscore": "^1.10.24",
"autoprefixer": "10.4.5",
"babel-jest": "^28.1.3",
"babel-loader": "^8.2.5",
"chalk": "^4.1.2",
Expand Down
11 changes: 9 additions & 2 deletions specifyweb/frontend/js_src/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import postcssPresetEnv from 'postcss-preset-env';
import tailwindcss from 'tailwindcss';
import autoprefixer from 'autoprefixer';

export default {
plugins: [postcssPresetEnv, tailwindcss, autoprefixer],
plugins: [
postcssPresetEnv({
features: {
// Disable warning about "Complex selectors"
'is-pseudo-class': false,
},
}),
tailwindcss,
],
};

0 comments on commit 5603847

Please sign in to comment.