vue优化,vue.config.js的配置
直接上代码:
// const proxy = require("http-proxy-middleware");
const CompressionPlugin = require("compression-webpack-plugin");
const webpack = require("webpack");
const cdn = {
// 忽略打包的第三方库
externals: {
vue: "Vue",
vuex: "Vuex",
"vue-router": "VueRouter",
axios: "axios",
"element-ui": "ELEMENT",
"vue-i18n": "VueI18n",
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
Popper: ["popper.js", "default"]
// xlsx: "XLSX"
},
共有 0 条评论