Skip to content

Commit

Permalink
refactor: use the native remix unstable_tailwind (#70)
Browse files Browse the repository at this point in the history
* refactor: use the native remix unstable_tailwind

* fix: allow tailwind.css to be committed
  • Loading branch information
micotodev authored Mar 16, 2023
1 parent f7efdc5 commit f2af08d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ node_modules
# Prisma shadow db
/postgres-data

/app/styles/tailwind.css

.history
.vscode
.idea
Expand Down
3 changes: 3 additions & 0 deletions app/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
"sideEffects": false,
"scripts": {
"build": "run-s build:*",
"build:css": "npm run generate:css -- --minify",
"build:remix": "remix build",
"db:prepare-migration": "prisma migrate dev --create-only --skip-seed",
"db:deploy-migration": "prisma migrate deploy",
"dev": "run-p dev:*",
"dev:css": "npm run generate:css -- --watch",
"dev:remix": "remix dev",
"format": "prettier --write .",
"generate:css": "tailwindcss -o ./app/styles/tailwind.css",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"setup": "run-s setup:db setup:seed",
"setup:db": "prisma generate && prisma migrate deploy",
Expand Down
3 changes: 3 additions & 0 deletions remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
*/
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: {
unstable_tailwind: true
}
};

0 comments on commit f2af08d

Please sign in to comment.