mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
chore-删除windicss相关插件,兼容性不好,暂且放弃使用
This commit is contained in:
parent
dbcc658eef
commit
991bfba424
@ -54,7 +54,6 @@
|
|||||||
"vue-i18n": "^9.1.10"
|
"vue-i18n": "^9.1.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@dcasia/mini-program-tailwind-webpack-plugin": "^1.4.2",
|
|
||||||
"@dcloudio/types": "^2.6.12",
|
"@dcloudio/types": "^2.6.12",
|
||||||
"@dcloudio/uni-automator": "^3.0.0-alpha-3050020220617001",
|
"@dcloudio/uni-automator": "^3.0.0-alpha-3050020220617001",
|
||||||
"@dcloudio/uni-cli-shared": "^3.0.0-alpha-3050020220617001",
|
"@dcloudio/uni-cli-shared": "^3.0.0-alpha-3050020220617001",
|
||||||
@ -76,8 +75,7 @@
|
|||||||
"sass": "^1.52.3",
|
"sass": "^1.52.3",
|
||||||
"typescript": "^4.7.4",
|
"typescript": "^4.7.4",
|
||||||
"vite": "^2.9.12",
|
"vite": "^2.9.12",
|
||||||
"vite-plugin-eslint": "^1.6.1",
|
"vite-plugin-eslint": "^1.6.1"
|
||||||
"vite-plugin-windicss": "^1.8.4"
|
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { createSSRApp } from 'vue';
|
import { createSSRApp } from 'vue';
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
import 'virtual:windi.css';
|
|
||||||
import { setupStore } from '@/state';
|
import { setupStore } from '@/state';
|
||||||
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import { ConfigEnv, UserConfig } from 'vite';
|
import { ConfigEnv, UserConfig } from 'vite';
|
||||||
import uni from '@dcloudio/vite-plugin-uni';
|
import uni from '@dcloudio/vite-plugin-uni';
|
||||||
// import eslintPlugin from 'vite-plugin-eslint';
|
// 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 { resolve } from 'path';
|
||||||
import { loadEnv } from 'vite';
|
import { loadEnv } from 'vite';
|
||||||
|
|
||||||
@ -43,13 +41,6 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
uni(),
|
uni(),
|
||||||
windicss(),
|
|
||||||
MiniProgramTailwind({
|
|
||||||
// 是否开启自动转换至 rpx 单位值的功能
|
|
||||||
enableRpx: false,
|
|
||||||
// 设计稿的像素宽度值,该尺寸会影响 rpx 转换过程中的计算比率
|
|
||||||
designWidth: 350,
|
|
||||||
}),
|
|
||||||
// eslintPlugin({
|
// eslintPlugin({
|
||||||
// include: ['src/**/*.js', 'src/**/*.vue', 'src/**/*.ts'],
|
// include: ['src/**/*.js', 'src/**/*.vue', 'src/**/*.ts'],
|
||||||
// exclude: ['./node_modules/**'],
|
// exclude: ['./node_modules/**'],
|
||||||
|
@ -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: {},
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user