Skip to content

Commit

Permalink
Fix build: Make tailwind config esm compatible, run prettier. (#477)
Browse files Browse the repository at this point in the history
* Make tailwind config esm compatible

* Run pnpm run format
  • Loading branch information
nichochar authored Jan 19, 2025
1 parent 36913a4 commit f4b3061
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .changeset/dirty-hotels-press.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Added configurable network exposure for Docker deployments with secure defaults.
- Optional network exposure via HOST_BIND environment variable
- Configured port 2150 mapping for Docker container

Users can optionally expose their Srcbook instance to other network devices by setting HOST_BIND=0.0.0.0 when running Docker.
Users can optionally expose their Srcbook instance to other network devices by setting HOST_BIND=0.0.0.0 when running Docker.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
context: .
dockerfile: Dockerfile
ports:
- "${HOST_BIND:-127.0.0.1}:2150:2150"
- '${HOST_BIND:-127.0.0.1}:2150:2150'
volumes:
- type: bind
source: ~/.srcbook
Expand All @@ -16,4 +16,4 @@ services:
- NODE_ENV=production
- HOST=${HOST_BIND:-127.0.0.1}
- SRCBOOK_INSTALL_DEPS=true
command: ["pnpm", "start"]
command: ['pnpm', 'start']
13 changes: 9 additions & 4 deletions packages/web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
const path = require('path');
import plugin from 'tailwindcss/plugin';
import path from 'path';
import { createRequire } from 'module';
import animate from 'tailwindcss-animate';

module.exports = {
// Create require function for resolving package paths
const require = createRequire(import.meta.url);

export default {
darkMode: ['class'],
content: [
'./index.html',
Expand Down Expand Up @@ -219,5 +224,5 @@ module.exports = {
},
},
},
plugins: [require('tailwindcss-animate')],
plugins: [animate],
};

0 comments on commit f4b3061

Please sign in to comment.