chore: 移除冗余的类型声明
使用defineConfig自带类型推断,无需单独声明类型
This commit is contained in:
parent
4fe828faa4
commit
e341b45429
@ -1,9 +1,9 @@
|
|||||||
import { type UserConfig, type ConfigEnv, loadEnv, defineConfig } from 'vite';
|
import { defineConfig, loadEnv } from 'vite';
|
||||||
import createPlugins from './vite/plugins';
|
import createPlugins from './vite/plugins';
|
||||||
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
|
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
|
|
||||||
|
export default defineConfig(({ mode, command }) => {
|
||||||
const env = loadEnv(mode, process.cwd());
|
const env = loadEnv(mode, process.cwd());
|
||||||
return {
|
return {
|
||||||
// 部署生产环境和开发环境下的URL。
|
// 部署生产环境和开发环境下的URL。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user