Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions awx/ui/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ const imageInlineSizeLimit = parseInt(
// 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,8 +126,7 @@ module.exports = function (webpackEnv) {
// https://github.com/facebook/create-react-app/issues/2677
ident: 'postcss',
config: false,
plugins: !useTailwind
? [
plugins: [
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
Expand All @@ -147,19 +141,6 @@ module.exports = function (webpackEnv) {
// 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,
},
],
],
},
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
Expand Down
8 changes: 0 additions & 8 deletions awx/ui/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 awx/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
"semver": "^7.8.0",
"style-loader": "^4.0.0",
"styled-components": "^6.4.2",
"tailwindcss": "^4.3.0",
"terser-webpack-plugin": "^5.6.0",
"webpack": "^5.106.2",
"webpack-dev-server": "^5.2.5",
Expand Down