Skip to content

Commit

Permalink
fix(tw preset): fix tailwind preset paths
Browse files Browse the repository at this point in the history
  • Loading branch information
spudly committed Jul 15, 2022
1 parent 1a6a91f commit f8da04b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tailwind-preset.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ const colors = require('tailwindcss/colors.js');
module.exports = ({content = []} = {}) => ({
mode: 'jit',
content: [
// eslint-disable-next-line node/no-path-concat -- glob
`${__dirname}/dist/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}`,
// eslint-disable-next-line unicorn/prefer-string-replace-all -- too new
`${__dirname
.replace(/^.*[/\\]node_modules[/\\]/u, './node_modules/')
.replace(/\\/gu, '/')}/dist/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}`,
...content,
],
darkMode: 'class',
Expand Down

0 comments on commit f8da04b

Please sign in to comment.