Skip to content

Remove unused tailwindcss devDependency - #516

Merged
cigamit merged 2 commits into
ctrliq:mainfrom
blaipr:remove/tailwindcss
Jun 25, 2026
Merged

Remove unused tailwindcss devDependency#516
cigamit merged 2 commits into
ctrliq:mainfrom
blaipr:remove/tailwindcss

Conversation

@blaipr

@blaipr blaipr commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

SUMMARY

Remove tailwindcss, which is installed but never loaded.

  • webpack.config.js references tailwindcss behind a useTailwind guard
    that checks for tailwind.config.js, which does not exist
  • No component uses tailwind utility classes, @apply, or any tailwind directive
  • The package is installed but the code path that loads it is never reached
  • Lint, Jest (552 suites, 2,908 tests), and production build all pass without it

ISSUE TYPE

  • Bug, Docs Fix or other nominal change

COMPONENT NAME

  • UI

ASCENDER VERSION

awx: 25.4.1.dev

ADDITIONAL INFORMATION

Identified by auditing npm devDependencies for unused packages.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the tailwindcss UI devDependency (and its lockfile entry) based on an audit showing Tailwind is not currently loaded/used in the UI build.

Changes:

  • Removed tailwindcss from awx/ui/package.json devDependencies.
  • Removed tailwindcss from awx/ui/package-lock.json (dependency list and node_modules/tailwindcss entry).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
awx/ui/package.json Drops the tailwindcss devDependency from the UI toolchain dependencies.
awx/ui/package-lock.json Updates the npm lockfile to remove the resolved Tailwind package and related metadata.
Files not reviewed (1)
  • awx/ui/package-lock.json: Generated file
Comments suppressed due to low confidence (1)

awx/ui/package-lock.json:109

  • The UI still uses an npm lockfile (package-lock.json). Project guidance prefers pnpm for Node tooling; if that’s the intended direction, consider migrating this workspace to pnpm (add pnpm-lock.yaml, update install/build docs and CI, and remove package-lock.json) rather than continuing to update the npm lockfile.

Comment thread awx/ui/package.json
Comment on lines 101 to 106
"resolve-url-loader": "^5.0.0",
"sass-loader": "^16.0.8",
"semver": "^7.8.0",
"style-loader": "^4.0.0",
"styled-components": "^6.4.2",
"tailwindcss": "^4.3.0",
"terser-webpack-plugin": "^5.6.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, lets strip the relevant portions out of the webpack config also, just to finish cleaning up.

@cigamit cigamit self-assigned this Jun 25, 2026
@cigamit cigamit added the dependencies Pull requests that update a dependency file label Jun 25, 2026
blaipr added 2 commits June 25, 2026 23:10
tailwindcss is referenced in webpack.config.js behind a
useTailwind guard that checks for tailwind.config.js, which does
not exist. No component uses tailwind classes, @apply, or any
tailwind directive. The package is installed but never loaded.
Strip the useTailwind guard and Tailwind-specific PostCSS plugin
branch from the webpack config, completing the tailwindcss removal.
@blaipr
blaipr force-pushed the remove/tailwindcss branch from 0b5e9ed to a1c52de Compare June 25, 2026 21:10
@blaipr

blaipr commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Fixed. Rebased on main and stripped the Tailwind branch from the webpack config.

@cigamit
cigamit merged commit 11a306b into ctrliq:main Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Development

Successfully merging this pull request may close these issues.

3 participants