Remove @tailwind utility nodes with parameters
This commit is contained in:
parent
0f73bb7d2e
commit
eba5ee702a
2 changed files with 23 additions and 22 deletions
|
|
@ -375,27 +375,25 @@ describe.only('@source', () => {
|
|||
expect(await fs.dumpFiles('./project-a/dist/*.css')).toMatchInlineSnapshot(`
|
||||
"
|
||||
--- ./project-a/dist/out.css ---
|
||||
@tailwind utilities source('../../project-b') {
|
||||
.content-\\[\\'project-a\\/node_modules\\/my-lib-1\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-a/node modules/my-lib-1/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-a\\/node_modules\\/my-lib-2\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-a/node modules/my-lib-2/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-a\\/src\\/logo\\.jpg\\'\\] {
|
||||
--tw-content: 'project-a/src/logo.jpg';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-b\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-b/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-c\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-c/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-a\\/node_modules\\/my-lib-1\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-a/node modules/my-lib-1/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-a\\/node_modules\\/my-lib-2\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-a/node modules/my-lib-2/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-a\\/src\\/logo\\.jpg\\'\\] {
|
||||
--tw-content: 'project-a/src/logo.jpg';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-b\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-b/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
.content-\\[\\'project-c\\/src\\/index\\.html\\'\\] {
|
||||
--tw-content: 'project-c/src/index.html';
|
||||
content: var(--tw-content);
|
||||
}
|
||||
@supports (-moz-orient: inline) {
|
||||
@layer base {
|
||||
|
|
|
|||
|
|
@ -185,7 +185,10 @@ export function toCss(ast: AstNode[]) {
|
|||
|
||||
// Rule
|
||||
if (node.kind === 'rule') {
|
||||
if (node.selector === '@tailwind utilities') {
|
||||
if (
|
||||
node.selector === '@tailwind utilities' ||
|
||||
node.selector.startsWith('@tailwind utilities ')
|
||||
) {
|
||||
for (let child of node.nodes) {
|
||||
css += stringify(child, depth)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue