1.0.0 • Published 5 months ago

@plugin-light/vite-plugin-remove-use-rem v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

移除 uni-app 中默认的 useRem

移除 uni-app 中默认的 useRem,可用于项目的自定义 rem

如何使用

安装

pnpm add @plugin-light/vite-plugin-remove-use-rem -D

vite.config.ts 中添加如下设置:

import { defineConfig } from 'vite';
import { removeUseRemVitePlugin } from '@plugin-light/vite-plugin-remove-use-rem';


export default defineConfig({
  plugins: [
    removeUseRemVitePlugin(),
  ],
});

参数

export interface IRemoveUseRemOptions {
  // 默认为 /uni-h5\.es\.js/
  file?: RegExp;
}

更新日志

点此查看

1.0.0

5 months ago

0.0.8

1 year ago