From 41fc6cbceb2a4117aa88d34a70a142d0f28a7398 Mon Sep 17 00:00:00 2001 From: unknown <qq1940665526@163.com> Date: 星期二, 11 六月 2024 19:02:33 +0800 Subject: [PATCH] 优化 --- vue.config.js | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/vue.config.js b/vue.config.js index 32812c0..b375ec8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,9 +1,6 @@ -// const { publicCtx } = require("@/assets/js/config"); -// import {publicCtx} from '@/assets/js/config' const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ - publicPath: 'http://182.92.203.7:3007/books/book/1', - // publicPath:'/books/book/1', + publicPath: process.env.PUBLIC_PATH, transpileDependencies: true, lintOnSave: false, // devServer: { @@ -22,7 +19,7 @@ library: `app-content`, libraryTarget: "umd", chunkLoadingGlobal: `webpackJsonp_app-content` - }, + } }, chainWebpack: (config) => { config.module -- Gitblit v1.9.1