Skip to content

Commit

Permalink
chore(deps-dev): remove unused tailwindcss dependency (#10810)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Mar 28, 2024
1 parent 2276ecb commit 2c95a9a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 204 deletions.
51 changes: 16 additions & 35 deletions client/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ const imageInlineSizeLimit = 0; // our CSP doesn't support inline images
// Check if TypeScript is setup
const useTypeScript = fs.existsSync(paths.appTsConfig);

// Check if Tailwind config exists
const useTailwind = fs.existsSync(
path.join(paths.appPath, "tailwind.config.js")
);

// Get the path to the uncompiled service worker (if it exists).
const swSrc = paths.swSrc;

Expand Down Expand Up @@ -131,36 +126,22 @@ function config(webpackEnv) {
// https://github.com/facebook/create-react-app/issues/2677
ident: "postcss",
config: false,
plugins: !useTailwind
? [
"postcss-flexbugs-fixes",
[
"postcss-preset-env",
{
autoprefixer: {
flexbox: "no-2009",
},
stage: 3,
},
],
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
"postcss-normalize",
]
: [
"tailwindcss",
"postcss-flexbugs-fixes",
[
"postcss-preset-env",
{
autoprefixer: {
flexbox: "no-2009",
},
stage: 3,
},
],
],
plugins: [
"postcss-flexbugs-fixes",
[
"postcss-preset-env",
{
autoprefixer: {
flexbox: "no-2009",
},
stage: 3,
},
],
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
"postcss-normalize",
],
},
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@
"stylelint-prettier": "^4.1.0",
"stylelint-scss": "^5.3.2",
"swr": "^2.2.5",
"tailwindcss": "^3.4.3",
"terser-webpack-plugin": "^5.3.10",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
Expand Down
Loading

0 comments on commit 2c95a9a

Please sign in to comment.