reduce assetsInlineLimit

This commit is contained in:
2022-10-03 05:46:30 +01:00
parent 1b883fbd8c
commit da4c5094f0

View File

@@ -75,11 +75,19 @@ module.exports = configure(function (/* ctx */) {
// polyfillModulePreload: true, // polyfillModulePreload: true,
// distDir // distDir
// Vite options
extendViteConf(viteConf, { isServer, isClient }) { extendViteConf(viteConf, { isServer, isClient }) {
viteConf.base = ''; viteConf.base = '';
}, },
extendViteConf(viteConf, { isServer, isClient }) {
viteConf.build.assetsInlineLimit = 1024;
},
// viteVuePluginOptions: {}, // viteVuePluginOptions: {},
// Vite plugins
// vitePlugins: [], // vitePlugins: [],
extendViteConf(viteConf, { isClient, isServer }) { extendViteConf(viteConf, { isClient, isServer }) {