You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
6 months ago
|
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,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|