-
Notifications
You must be signed in to change notification settings - Fork 406
Open
Description
When I use npx uncss -u uncss.json http://base-dev > ../css/style-uncssed.css, no matter the content of uncss.json a whole bunch of data is dumped and ../css/style-uncssed.css remains empty.
This is the tail of the dump:
'@media (min-width: 576px) {\n' +
' .container-sm, .container {\n' +
' max-width: 540px;\n' +
' }\n' +
'}\n' +
'@media (min-width: 768px) {\n' +
' .co'... 197814 more characters,
hasBOM: false,
id: '<input css 1>'
},
end: { line: 64, column: 1 }
},
selector: ':root',
lastEach: 1,
indexes: {}
}
}
Node.js v17.1.0
I've tried the following contents in uncss.json
{}
or
{
"media": [
"(max-width: 480px) and (orientation: landscape)"
]
}
or
{
"media": [
"(max-width: 480px)"
]
}
Whenever I run npx uncss -m "(max-width: 480px) and (orientation: landscape)" http://base-dev > ../css/style-uncssed.css, all goes well.
What am I missing?
Metadata
Metadata
Assignees
Labels
No labels