Sfoglia il codice sorgente

😎去掉tailwindcss依赖

zuohuaijun 2 anni fa
parent
commit
07c73bbc14
5 ha cambiato i file con 3 aggiunte e 31 eliminazioni
  1. 3 6
      Web/package.json
  2. 0 6
      Web/postcss.config.js
  3. 0 3
      Web/src/assets/main.css
  4. 0 1
      Web/src/main.ts
  5. 0 15
      Web/tailwind.config.js

+ 3 - 6
Web/package.json

@@ -65,24 +65,21 @@
 	"devDependencies": {
 		"@plugin-web-update-notification/vite": "^1.7.1",
 		"@types/lodash-es": "^4.17.12",
-		"@types/node": "^20.12.11",
+		"@types/node": "^20.12.12",
 		"@types/nprogress": "^0.2.3",
 		"@types/sortablejs": "^1.15.8",
-		"@typescript-eslint/eslint-plugin": "^7.8.0",
-		"@typescript-eslint/parser": "^7.8.0",
+		"@typescript-eslint/eslint-plugin": "^7.9.0",
+		"@typescript-eslint/parser": "^7.9.0",
 		"@vitejs/plugin-vue": "^5.0.4",
 		"@vitejs/plugin-vue-jsx": "^3.1.0",
 		"@vue/compiler-sfc": "^3.4.27",
-		"autoprefixer": "^10.4.19",
 		"code-inspector-plugin": "^0.13.0",
 		"eslint": "^9.2.0",
 		"eslint-plugin-vue": "^9.26.0",
 		"less": "^4.2.0",
-		"postcss": "^8.4.38",
 		"prettier": "^3.2.5",
 		"rollup-plugin-visualizer": "^5.12.0",
 		"sass": "^1.77.1",
-		"tailwindcss": "^3.4.3",
 		"terser": "^5.31.0",
 		"typescript": "^5.4.5",
 		"vite": "^5.2.11",

+ 0 - 6
Web/postcss.config.js

@@ -1,6 +0,0 @@
-module.exports = {
-	plugins: {
-		tailwindcss: {},
-		autoprefixer: {},
-	},
-};

+ 0 - 3
Web/src/assets/main.css

@@ -1,3 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;

+ 0 - 1
Web/src/main.ts

@@ -16,7 +16,6 @@ import VueSignaturePad from 'vue-signature-pad'; // 电子签名
 import vue3TreeOrg from 'vue3-tree-org'; // 组织架构图
 import 'vue3-tree-org/lib/vue3-tree-org.css'; // 组织架构图样式
 import 'animate.css'; // 动画库
-import '/@/assets/main.css'
 
 import { disAutoConnect } from 'vue-plugin-hiprint';
 disAutoConnect();

+ 0 - 15
Web/tailwind.config.js

@@ -1,15 +0,0 @@
-module.exports = {
-	mode: 'jit',
-	purge: ['./src/**/*.{vue,js,ts,jsx,tsx}', './index.html'],
-	corePlugins: {
-		preflight: false, // 防止和已有UI框架样式冲突
-	},
-	darkMode: false, // or 'media' or 'class'
-	theme: {
-		extend: {},
-	},
-	variants: {
-		extend: {},
-	},
-	plugins: [],
-};