Skip to content

Commit

Permalink
build(tailwind): handle tailwind build in remix
Browse files Browse the repository at this point in the history
  • Loading branch information
obviyus committed Feb 27, 2024
1 parent ef6d926 commit 06bc3b9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ build/
*.mp3
*.pyc
*.db
worker/app/styles/app.css

# IDE
**/.idea/
2 changes: 1 addition & 1 deletion worker/styles/app.css → worker/app/styles/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
6 changes: 6 additions & 0 deletions worker/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
15 changes: 8 additions & 7 deletions worker/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
tailwind: true,
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// publicPath: "/build/",
// serverBuildPath: "build/index.js",
browserNodeBuiltinsPolyfill: { modules: { events: true } },
ignoredRouteFiles: ["**/.*"],
tailwind: true,
postcss: true,
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// publicPath: "/build/",
// serverBuildPath: "build/index.js",
browserNodeBuiltinsPolyfill: { modules: { events: true } },
};
10 changes: 5 additions & 5 deletions worker/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./app/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
content: ["./app/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};

0 comments on commit 06bc3b9

Please sign in to comment.