feat: add transformerDirectives
parent
70f2a8285b
commit
653afff732
|
@ -82,6 +82,7 @@
|
||||||
"@types/sortablejs": "^1.15.1",
|
"@types/sortablejs": "^1.15.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
||||||
"@typescript-eslint/parser": "^5.56.0",
|
"@typescript-eslint/parser": "^5.56.0",
|
||||||
|
"@unocss/transformer-directives": "^0.50.6",
|
||||||
"@vitejs/plugin-legacy": "^4.0.2",
|
"@vitejs/plugin-legacy": "^4.0.2",
|
||||||
"@vitejs/plugin-vue": "^4.1.0",
|
"@vitejs/plugin-vue": "^4.1.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
||||||
|
@ -125,10 +126,10 @@
|
||||||
"vite-plugin-progress": "^0.0.6",
|
"vite-plugin-progress": "^0.0.6",
|
||||||
"vite-plugin-purge-icons": "^0.9.2",
|
"vite-plugin-purge-icons": "^0.9.2",
|
||||||
"vite-plugin-pwa": "^0.14.6",
|
"vite-plugin-pwa": "^0.14.6",
|
||||||
|
"vite-plugin-style-import": "^2.0.0",
|
||||||
"vite-plugin-svg-icons": "^2.0.1",
|
"vite-plugin-svg-icons": "^2.0.1",
|
||||||
"vite-vue-plugin-html": "^1.0.1",
|
"vite-vue-plugin-html": "^1.0.1",
|
||||||
"vite-vue-plugin-theme": "^1.0.0",
|
"vite-vue-plugin-theme": "^1.0.0",
|
||||||
"vite-plugin-style-import": "^2.0.0",
|
|
||||||
"vue-eslint-parser": "^9.1.0",
|
"vue-eslint-parser": "^9.1.0",
|
||||||
"vue-tsc": "^1.2.0"
|
"vue-tsc": "^1.2.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -21,6 +21,7 @@ specifiers:
|
||||||
'@types/sortablejs': ^1.15.1
|
'@types/sortablejs': ^1.15.1
|
||||||
'@typescript-eslint/eslint-plugin': ^5.56.0
|
'@typescript-eslint/eslint-plugin': ^5.56.0
|
||||||
'@typescript-eslint/parser': ^5.56.0
|
'@typescript-eslint/parser': ^5.56.0
|
||||||
|
'@unocss/transformer-directives': ^0.50.6
|
||||||
'@vitejs/plugin-legacy': ^4.0.2
|
'@vitejs/plugin-legacy': ^4.0.2
|
||||||
'@vitejs/plugin-vue': ^4.1.0
|
'@vitejs/plugin-vue': ^4.1.0
|
||||||
'@vitejs/plugin-vue-jsx': ^3.0.1
|
'@vitejs/plugin-vue-jsx': ^3.0.1
|
||||||
|
@ -150,6 +151,7 @@ devDependencies:
|
||||||
'@types/sortablejs': 1.15.1
|
'@types/sortablejs': 1.15.1
|
||||||
'@typescript-eslint/eslint-plugin': 5.56.0_2hcjazgfnbtq42tcc73br2vup4
|
'@typescript-eslint/eslint-plugin': 5.56.0_2hcjazgfnbtq42tcc73br2vup4
|
||||||
'@typescript-eslint/parser': 5.56.0_j4766f7ecgqbon3u7zlxn5zszu
|
'@typescript-eslint/parser': 5.56.0_j4766f7ecgqbon3u7zlxn5zszu
|
||||||
|
'@unocss/transformer-directives': 0.50.6
|
||||||
'@vitejs/plugin-legacy': 4.0.2_terser@5.16.8+vite@4.2.1
|
'@vitejs/plugin-legacy': 4.0.2_terser@5.16.8+vite@4.2.1
|
||||||
'@vitejs/plugin-vue': 4.1.0_vite@4.2.1+vue@3.2.47
|
'@vitejs/plugin-vue': 4.1.0_vite@4.2.1+vue@3.2.47
|
||||||
'@vitejs/plugin-vue-jsx': 3.0.1_vite@4.2.1+vue@3.2.47
|
'@vitejs/plugin-vue-jsx': 3.0.1_vite@4.2.1+vue@3.2.47
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import { defineConfig, presetAttributify, presetMini, presetUno } from 'unocss'
|
import { defineConfig, presetAttributify, presetMini, presetUno } from 'unocss'
|
||||||
// import presetWind from '@unocss/preset-wind'
|
import transformerDirectives from '@unocss/transformer-directives'
|
||||||
import { primaryColor } from './build/config/themeConfig'
|
import { primaryColor } from './build/config/themeConfig'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
exclude: ['node_modules', 'dist', '.git', '.husky', '.vscode', 'public', 'build'],
|
||||||
presets: [presetMini({ dark: 'class' }), presetAttributify(), presetUno()],
|
presets: [presetMini({ dark: 'class' }), presetAttributify(), presetUno()],
|
||||||
// presets: [presetMini(), presetAttributify(), presetUno({ dark: 'class' }), presetWind()],
|
transformers: [transformerDirectives()],
|
||||||
// transformers: [createEnterPlugin()],
|
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
zIndex: {
|
zIndex: {
|
||||||
|
|
Loading…
Reference in New Issue