Commit 85b7fc90 authored by 张俊's avatar 张俊

hebing

parents dc251bee 4d771b88
......@@ -6,6 +6,10 @@
"serve": "vite preview"
},
"dependencies": {
"@babel/core": "^7.14.8",
"@babel/preset-env": "^7.14.8",
"@babel/runtime": "^7.14.8",
"@rollup/plugin-babel": "^5.3.0",
"axios": "^0.21.1",
"element-plus": "^2.0.2",
"sass": "^1.35.1",
......
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import legacyPlugin from 'vite-plugin-legacy'
const path = require('path')
console.log(__dirname);
......@@ -10,7 +11,27 @@ function resolve_path (dir) {
export default defineConfig({
plugins: [vue()],
plugins: [
vue(),
// The default options are listed below. Pass nothing to use them.
legacyPlugin({
// The browsers that must be supported by your legacy bundle.
// https://babeljs.io/docs/en/babel-preset-env#targets
targets: [ 'ie >= 11' ],
// Define which polyfills your legacy bundle needs. They will be loaded
// from the Polyfill.io server. See the "Polyfills" section for more info.
polyfills: [
// Empty by default
],
// Toggles whether or not browserslist config sources are used.
// https://babeljs.io/docs/en/babel-preset-env#ignorebrowserslistconfig
ignoreBrowserslistConfig: false,
// When true, core-js@3 modules are inlined based on usage.
// When false, global namespace APIs (eg: Object.entries) are loaded
// from the Polyfill.io server.
corejs: false,
})
],
base:'./',
clearScreen:false,
resolve:{
......@@ -40,5 +61,6 @@ export default defineConfig({
build:{
outDir:'dist/zjhl',
assetsDir:'static'
}
},
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment