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: {}, -});