diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93aa180f..470d9e1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,4 +51,7 @@ jobs: with: enable_cache: true format_output: true - prettier_opts: '{ "useTabs": true }' \ No newline at end of file + prettier_opts: '{ "useTabs": true }' + + - name: Check that Tailwind generated the utilities + run: grep -qE '\.flex\s*\{' _site/assets/css/main.css diff --git a/assets/css/main.css b/assets/css/main.css index ba6dbbc9..5173cf3a 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -3,12 +3,12 @@ @import "tailwindcss" source(none); -@source "../../_drafts/**/*.html"; -@source "../../_includes/**/*.html"; -@source "../../_layouts/**/*.html"; -@source "../../_posts/*.md"; -@source "../../*.md"; -@source "../../*.html"; +@source "./_drafts/**/*.html"; +@source "./_includes/**/*.html"; +@source "./_layouts/**/*.html"; +@source "./_posts/*.md"; +@source "./*.md"; +@source "./*.html"; @theme { --font-sans: "IBM Plex Mono", sans-serif; diff --git a/postcss.config.js b/postcss.config.js index 62399708..15ce3a3b 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -2,7 +2,7 @@ const production = process.env.JEKYLL_ENV == 'production'; module.exports = { plugins: [ - require('@tailwindcss/postcss')({ optimize: production }), + require('@tailwindcss/postcss')({ base: __dirname, optimize: production }), ...(production ? [require('cssnano')({ preset: 'default' })] : [])