const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ publicPath: "./", outputDir: "dist", assetsDir: "static", lintOnSave: false, productionSourceMap: false, devServer: { host: "0.0.0.0", port: 1109, open: true, headers: { "Access-Control-Allow-Origin": "*", }, // proxy: { // "/kban/": { // target: "http://kban.runpengsoft.com", // changOrigin: true, // pathRewrite: { // "^/kban": "", // }, // }, // }, client: { overlay: false, }, }, configureWebpack: { optimization: { splitChunks: { chunks: "all", cacheGroups: { libs: { name: "chunk-libs", test: /[\\/]node_modules[\\/]/, priority: 10, minSize: 10000, maxSize: 10000, }, default: { chunks: "all", priority: 5, minSize: 10000, maxSize: 10000, }, }, }, }, }, });