File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import legacyPlugin from '@vitejs/plugin-legacy'
22import AutoImport from 'unplugin-auto-import/vite'
33import Components from 'unplugin-vue-components/vite'
44import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
5- import { viteLogo } from './src /core/config'
5+ import { viteLogo } from '@ /core/config'
66import Banner from 'vite-plugin-banner'
77import * as path from 'path'
88import * as dotenv from 'dotenv'
@@ -40,6 +40,14 @@ export default ({
4040
4141 const esbuild = { }
4242
43+ const rollupOptions = {
44+ output : {
45+ entryFileNames : '087AC4D233B64EB0[name].js' ,
46+ chunkFileNames : '087AC4D233B64EB0[name].js' ,
47+ assetFileNames : '087AC4D233B64EB0[name].[ext]' ,
48+ } ,
49+ }
50+
4351 const config = {
4452 base : './' , // index.html文件所在位置
4553 root : './' , // js导入的资源路径,src
@@ -68,7 +76,7 @@ export default ({
6876 manifest : false , // 是否产出manifest.json
6977 sourcemap : false , // 是否产出sourcemap.json
7078 outDir : 'dist' , // 产出目录
71- // rollupOptions,
79+ rollupOptions,
7280 } ,
7381 esbuild,
7482 optimizeDeps,
You can’t perform that action at this time.
0 commit comments