Commit e719bb73 authored by mahui's avatar mahui

init

parent d97238ed
...@@ -30,7 +30,12 @@ export default ({ ...@@ -30,7 +30,12 @@ export default ({
output: { output: {
entryFileNames: `gva/gin-vue-admin-[name].${timestamp}.js`, entryFileNames: `gva/gin-vue-admin-[name].${timestamp}.js`,
chunkFileNames: `js/gin-vue-admin-[name].${timestamp}.js`, chunkFileNames: `js/gin-vue-admin-[name].${timestamp}.js`,
assetFileNames: `assets/gin-vue-admin-[name].${timestamp}.[ext]` assetFileNames: `assets/gin-vue-admin-[name].${timestamp}.[ext]`,
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString();
}
}
} }
} }
...@@ -72,6 +77,7 @@ export default ({ ...@@ -72,6 +77,7 @@ export default ({
manifest: false, // 是否产出manifest.json manifest: false, // 是否产出manifest.json
sourcemap: false, // 是否产出sourcemap.json sourcemap: false, // 是否产出sourcemap.json
outDir: 'dist', // 产出目录 outDir: 'dist', // 产出目录
chunkSizeWarningLimit:1500,
rollupOptions, rollupOptions,
}, },
esbuild, esbuild,
......
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