Remove less, vite-plugin-style-import

This commit is contained in:
草鞋没号 committed 2021-12-21 09:18:01 +08:00
1 parent b8285c407c
commit c6a3dd00a2
6 files changed
+64 -431

No files matched your search

-15
View File
@@ -1,7 +1,6 @@
import { join } from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import styleImport from 'vite-plugin-style-import'
import pkg from '../package.json'
// https://vitejs.dev/config/
@@ -10,26 +9,12 @@ export default defineConfig({
root: join(__dirname, '../src/renderer'),
plugins: [
react(),
styleImport({
libs: [{
libraryName: 'antd',
esModule: true,
resolveStyle: (name) => `antd/es/${name}/style/index`,
},],
}),
],
base: './',
build: {
emptyOutDir: true,
outDir: '../../dist/renderer',
},
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
},
},
},
resolve: {
alias: {
'@': join(__dirname, '../src/renderer/src'),