evrone / postcss-px-to-viewport

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://evrone.com/postcss-px-viewport
MIT License
2.99k stars 401 forks source link

vue3+scss /* px-to-viewport-ignore */ not work #118

Open arsize opened 2 years ago

arsize commented 2 years ago

it looks like not work. (vue3+scss+vite)

WalterBrightHub commented 2 years ago

try Px/PX/pX which will not be transformed

arsize commented 2 years ago

try Px/PX/pX which will not be transformed

Thank you for your reply,but vscode plugin volar will transform Px/PX/pX to px.

hatedMe commented 10 months ago

try try

@use "sass:string";
.class{
 font-size: string.unquote("16px");
}