提交 7c299259 编写于 作者: richard_1015's avatar richard_1015

feat: site build @vitejs/plugin-legacy

上级 06580e4f
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import legacy from '@vitejs/plugin-legacy';
import Markdown from 'vite-plugin-md';
import path from 'path';
const resolve = path.resolve;
......@@ -31,7 +32,10 @@ export default defineConfig({
vue({
include: [/\.vue$/, /\.md$/]
}),
Markdown()
Markdown(),
legacy({
targets: ['defaults', 'not IE 11']
})
],
build: {
target: 'es2015',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册