vite-plugin-vue-px2rem
TypeScript icon, indicating that this package has built-in type declarations

1.2.7 • Public • Published

根据设计稿宽度 自动适配计算出rem(支持行内样式,css变量) 可以使用vant

import px2rem from 'vite-plugin-vue-px2rem'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(), 
    px2rem({
        size: 375 //设计稿的宽度
    })],
})

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-vue-px2rem

Weekly Downloads

2

Version

1.2.7

License

ISC

Unpacked Size

8.98 kB

Total Files

5

Last publish

Collaborators

  • meisiwan