Skip to content

Commit fa50198

Browse files
committed
[fix] Tailwind CSS building bug with Parcel (parcel-bundler/parcel#5961 (comment))
1 parent 4b23a0d commit fa50198

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212
"url": "https://github.com/EasyWebApp/WebCell-mobile/issues"
1313
},
1414
"dependencies": {
15-
"@tailwindcss/postcss": "^4.0.14",
1615
"browser-unhandled-rejection": "^1.0.2",
1716
"cell-router": "^3.0.3",
1817
"dom-renderer": "^2.6.2",
1918
"koajax": "^3.1.1",
2019
"mdui": "^2.1.3",
2120
"mobx": "^6.13.6",
22-
"tailwindcss": "^4.0.14",
2321
"web-cell": "^3.0.4",
2422
"web-utility": "^4.4.3"
2523
},
@@ -33,8 +31,10 @@
3331
"@parcel/transformer-typescript-tsc": "~2.13.3",
3432
"@parcel/transformer-webmanifest": "~2.13.3",
3533
"@stylistic/eslint-plugin": "^4.2.0",
34+
"@tailwindcss/postcss": "^4.0.14",
3635
"@types/eslint-config-prettier": "^6.11.3",
3736
"@types/node": "^22.13.10",
37+
"cross-env": "^7.0.3",
3838
"eslint": "^9.22.0",
3939
"eslint-config-prettier": "^10.1.1",
4040
"eslint-plugin-react": "^7.37.4",
@@ -48,6 +48,7 @@
4848
"prettier": "^3.5.3",
4949
"prettier-plugin-css-order": "^2.1.2",
5050
"prettier-plugin-tailwindcss": "^0.6.11",
51+
"tailwindcss": "^4.0.14",
5152
"typescript": "~5.8.2",
5253
"typescript-eslint": "^8.26.1",
5354
"workbox-cli": "^7.3.0"
@@ -71,7 +72,7 @@
7172
"test": "lint-staged",
7273
"clean": "rm -rf .parcel-cache/ dist/",
7374
"start": "npm run clean && parcel src/index.html",
74-
"pack": "parcel build src/index.html --public-url .",
75+
"pack": "cross-env PARCEL_WORKER_BACKEND=process parcel build src/index.html --public-url .",
7576
"build": "npm run clean && npm run pack && workbox generateSW"
7677
}
7778
}

pnpm-lock.yaml

Lines changed: 18 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
rel="stylesheet"
3232
href="https://fonts.googleapis.com/icon?family=Material+Icons+Round"
3333
/>
34-
<link rel="stylesheet" src="./index.css" />
34+
<link rel="stylesheet" href="./index.css" />
3535
<script type="module" src="index.tsx"></script>
3636
</head>
3737

0 commit comments

Comments
 (0)