From 991bfba42422ca2acb8e18461415a1b915080836 Mon Sep 17 00:00:00 2001 From: Huang <596417202@qq.com> Date: Mon, 20 Jun 2022 11:00:07 +0800 Subject: [PATCH] =?UTF-8?q?chore-=E5=88=A0=E9=99=A4windicss=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8F=92=E4=BB=B6,=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E4=B8=8D=E5=A5=BD,=E6=9A=82=E4=B8=94=E6=94=BE=E5=BC=83?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +--- src/main.ts | 1 - vite.config.ts | 9 --------- windi.config.ts | 21 --------------------- 4 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 windi.config.ts diff --git a/package.json b/package.json index 1cf06a4..22e8359 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "vue-i18n": "^9.1.10" }, "devDependencies": { - "@dcasia/mini-program-tailwind-webpack-plugin": "^1.4.2", "@dcloudio/types": "^2.6.12", "@dcloudio/uni-automator": "^3.0.0-alpha-3050020220617001", "@dcloudio/uni-cli-shared": "^3.0.0-alpha-3050020220617001", @@ -76,8 +75,7 @@ "sass": "^1.52.3", "typescript": "^4.7.4", "vite": "^2.9.12", - "vite-plugin-eslint": "^1.6.1", - "vite-plugin-windicss": "^1.8.4" + "vite-plugin-eslint": "^1.6.1" }, "husky": { "hooks": { diff --git a/src/main.ts b/src/main.ts index b8d8929..2a12137 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,5 @@ import { createSSRApp } from 'vue'; import App from './App.vue'; -import 'virtual:windi.css'; import { setupStore } from '@/state'; export function createApp() { diff --git a/vite.config.ts b/vite.config.ts index 7c66fef..2140b43 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,6 @@ import { ConfigEnv, UserConfig } from 'vite'; import uni from '@dcloudio/vite-plugin-uni'; // import eslintPlugin from 'vite-plugin-eslint'; -import windicss from 'vite-plugin-windicss'; -import MiniProgramTailwind from '@dcasia/mini-program-tailwind-webpack-plugin/rollup'; import { resolve } from 'path'; import { loadEnv } from 'vite'; @@ -43,13 +41,6 @@ export default ({ mode }: ConfigEnv): UserConfig => { }, plugins: [ uni(), - windicss(), - MiniProgramTailwind({ - // 是否开启自动转换至 rpx 单位值的功能 - enableRpx: false, - // 设计稿的像素宽度值,该尺寸会影响 rpx 转换过程中的计算比率 - designWidth: 350, - }), // eslintPlugin({ // include: ['src/**/*.js', 'src/**/*.vue', 'src/**/*.ts'], // exclude: ['./node_modules/**'], diff --git a/windi.config.ts b/windi.config.ts deleted file mode 100644 index d2c228a..0000000 --- a/windi.config.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { defineConfig } from 'vite-plugin-windicss'; - -// https://windicss.org/posts/attributify.html -export default defineConfig({ - attributify: { - // prefix: '' - }, - preflight: false, - prefixer: false, - extract: { - // 忽略部分文件夹 - exclude: ['node_modules', '.git', 'dist', '.idea', '.vscode'], - }, - corePlugins: { - // 禁用掉在小程序环境中不可能用到的 plugins - container: false, - }, - alias: {}, - plugins: [], - variants: {}, -});