chore-删除windicss相关插件,兼容性不好,暂且放弃使用

This commit is contained in:
Huang 2022-06-20 11:00:07 +08:00
parent dbcc658eef
commit 991bfba424
4 changed files with 1 additions and 34 deletions

View File

@ -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": {

View File

@ -1,6 +1,5 @@
import { createSSRApp } from 'vue';
import App from './App.vue';
import 'virtual:windi.css';
import { setupStore } from '@/state';
export function createApp() {

View File

@ -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/**'],

View File

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