const path = require("path"); function resolve(dir) { return path.join(__dirname, dir); } // vue.config.js module.exports = { assetsDir: "assets", publicPath: "./", productionSourceMap: false, lintOnSave: false, css: { loaderOptions: { less: { lessOptions: { javascriptEnabled: true, }, }, }, }, devServer: { disableHostCheck: true, headers: { "Access-Control-Allow-Origin": "*", }, }, configureWebpack: { // provide the app's title in webpack's name field, so that // it can be accessed in index.html to inject the correct title. performance: { //入口起点的最大体积 maxEntrypointSize: 50000000, //生成文件的最大体积 maxAssetSize: 30000000, } } };