ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
vue.config.js ~~~ const webpack = require("webpack"); configureWebpack: { plugins: [ new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 3, // 必须 >= 1 minChunkSize: 1000 }) ] } ~~~ 全部 ~~~ const webpack = require("webpack"); module.exports = { publicPath:'./', pages: { index: { // page 的入口 entry:"src/main.js", // 在 dist/index.html 的输出 filename: 'index.html', // 当使用 title 选项时, // template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title> title: 'دىلكان', }, }, devServer: { proxy: { '/dev': { target: 'https://dilkan.ulunix.cn', // 设置接口的域名 secure: true, changeOrigin: true, // 是否跨域 pathRewrite: { '^/dev':'' } } } }, configureWebpack: { plugins: [ new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 3, // 必须 >= 1 minChunkSize: 1000 }) ] } } ~~~