mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-05 19:42:08 +08:00
chore: 更新依赖
This commit is contained in:
parent
774b10f979
commit
6527ade7c9
@ -3,7 +3,7 @@
|
||||
* @description 封装plugins数组统一调用
|
||||
*/
|
||||
|
||||
import type { Plugin } from 'vite';
|
||||
import type { PluginOption } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||
import vueSetupExtend from 'vite-plugin-vue-setup-extend';
|
||||
@ -23,7 +23,7 @@ import { ConfigVisualizerConfig } from './visualizer';
|
||||
export function createVitePlugins(env: ViteEnv, isBuild: boolean) {
|
||||
const { VITE_USE_MOCK, VITE_USE_ERUDA } = env;
|
||||
|
||||
const vitePlugins: (Plugin | Plugin[])[] = [
|
||||
const vitePlugins: (PluginOption | PluginOption[])[] = [
|
||||
// vue支持
|
||||
vue(),
|
||||
// JSX支持
|
||||
|
47215
package-lock.json
generated
47215
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -56,7 +56,6 @@
|
||||
"postcss-html": "1.5.0",
|
||||
"postcss-less": "^6.0.0",
|
||||
"prettier": "^2.8.1",
|
||||
"rollup": "^2.70.2",
|
||||
"rollup-plugin-visualizer": "^5.8.3",
|
||||
"stylelint": "^14.16.0",
|
||||
"stylelint-config-prettier": "^9.0.4",
|
||||
@ -68,14 +67,14 @@
|
||||
"typescript": "^4.9.4",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"vite": "^3.2.5",
|
||||
"vite": "^4.0.1",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-eruda": "^1.0.1",
|
||||
"vite-plugin-imagemin": "^0.6.1",
|
||||
"vite-plugin-mock": "^2.9.6",
|
||||
"vite-plugin-pages": "^0.27.1",
|
||||
"vite-plugin-pages": "^0.28.0",
|
||||
"vite-plugin-progress": "^0.0.6",
|
||||
"vite-plugin-restart": "^0.2.0",
|
||||
"vite-plugin-restart": "^0.3.0",
|
||||
"vite-plugin-style-import": "^2.0.0",
|
||||
"vite-plugin-svg-icons": "^2.0.1",
|
||||
"vite-plugin-vue-setup-extend": "^0.4.0",
|
||||
|
1099
pnpm-lock.yaml
generated
1099
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
import { createVitePlugins } from './build/vite/plugins';
|
||||
import { resolve } from 'path';
|
||||
import { ConfigEnv, loadEnv, UserConfigExport } from 'vite';
|
||||
import { ConfigEnv, loadEnv, UserConfig } from 'vite';
|
||||
import { wrapperEnv } from './build/utils';
|
||||
|
||||
const pathResolve = (dir: string) => {
|
||||
@ -8,7 +8,7 @@ const pathResolve = (dir: string) => {
|
||||
};
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default function ({ command, mode }: ConfigEnv): UserConfigExport {
|
||||
export default function ({ command, mode }: ConfigEnv): UserConfig {
|
||||
const isProduction = command === 'build';
|
||||
const root = process.cwd();
|
||||
const env = loadEnv(mode, root);
|
||||
|
Loading…
x
Reference in New Issue
Block a user