Skip to content

Commit

Permalink
Bikeshed
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Oct 10, 2024
1 parent 76ecee4 commit 6499151
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/build/test/build-async/build-async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ test('tailwind CSS', async function (t) {
t.true(await pathExists('build/main.js'))
t.true(await pathExists('build/ui.js'))
const uiJs = await fs.readFile('build/ui.js', 'utf8')
t.true(uiJs.indexOf('.\\\\!top-\\\\[117px\\\\]') !== -1)
t.true(uiJs.indexOf('.\\\\!pt-\\\\[117px\\\\]') !== -1)
t.true(
uiJs.indexOf(".before\\\\:content-\\\\[\\\\'foo\\\\'\\\\]::before") !== -1
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\!top-\[117px\] {
.\!pt-\[117px\] {
top: 117px !important;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '!./styles.css'

export default function (rootNode: HTMLElement, data: { greeting: string }) {
rootNode.innerHTML = `<p class="!top-[117px] hover:bg-[#bada55] before:content-['foo']">${data.greeting}</p>`
rootNode.innerHTML = `<p class="!pt-[117px] hover:bg-[#bada55] before:content-['foo']">${data.greeting}</p>`
}

0 comments on commit 6499151

Please sign in to comment.