// const path = require("path"); // function resolve(dir) { // return path.join(__dirname, ".", dir); // } module.exports = { // publicPath: "/gdsnj/dp/", publicPath: "/njdp/", productionSourceMap: false, devServer: { port: 8080 }, chainWebpack: config => { // config.optimization.minimize(true); // config.optimization.splitChunks({ // chunks: "all" // }); config.externals({ vue: "Vue", // axios: "axios", // echarts: "echarts", // echarts2: "echarts2", "element-ui": "ELEMENT" }); // config.resolve.alias.set("project", resolve(process.env.VUE_APP_PATH)); // config.plugin("html").tap(args => { // args[0].title = process.env.VUE_APP_TITLE; // return args; // }); }, configureWebpack: { devtool: "eval-source-map" } };
懒人记录