Skip to content

Commit

Permalink
Merge pull request #783 from maizzle/fix-tailwindcss-content
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Oct 7, 2022
2 parents 8fc97a7 + 63466f5 commit 3884725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/generators/tailwindcss.js
Expand Up @@ -35,7 +35,8 @@ module.exports = {
important: true,
content: {
files: [
'./src/**/*.*',
'./src/components/**.html',
'./src/layouts/**.html',
{raw: html, extension: 'html'}
]
}
Expand All @@ -46,7 +47,6 @@ module.exports = {
config.content = {
files: [
...config.content,
'./src/**/*.*',
{raw: html, extension: 'html'}
]
}
Expand Down
2 changes: 1 addition & 1 deletion test/test-tailwindcss.js
Expand Up @@ -111,5 +111,5 @@ test('uses custom postcss plugins from the maizzle config', async t => {
const css = await Tailwind.compile('.test {transform: scale(0.5)}', '<div class="test">Test</a>', {}, maizzleConfig)

t.not(css, undefined)
t.is(css.trim(), '.inline {display: inline !important} .table {display: table !important} .contents {display: contents !important} .truncate {overflow: hidden !important;text-overflow: ellipsis !important;white-space: nowrap !important} .uppercase {text-transform: uppercase !important} .lowercase {text-transform: lowercase !important} .capitalize {text-transform: capitalize !important} .test {-webkit-transform: scale(0.5);transform: scale(0.5)}')
t.is(css.trim(), '.test {-webkit-transform: scale(0.5);transform: scale(0.5)}')
})

0 comments on commit 3884725

Please sign in to comment.