// using with vite
import { defineConfig } from "vite";
import { composeVisitors } from "lightningcss";
import createPxToVwVisitor from "lightningcss-plugin-px-to-viewport";
export default defineConfig({
css: {
transform: "lightningcss",
lightningcss: {
visitor: composeVisitors([
createPxToVwVisitor({
designWidth: 320,
minPixelValue: 1,
excludeSelectors: [{ type: 'class', name: /^mui-/ }] // exclude `.mui-*` class
}),
]),
} as any,
},
});
-
Notifications
You must be signed in to change notification settings - Fork 0
A lightningcss plugin that converts px to viewport width
License
penjj/lightningcss-plugin-px-to-viewport
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A lightningcss plugin that converts px to viewport width
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published