From d07c2414b1d7be4a0d601c10987589bd2db83598 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 22 五月 2024 10:16:48 +0800 Subject: [PATCH] 嵌入式 --- vue.config.js | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/vue.config.js b/vue.config.js index 8078cb6..805e9d9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,14 +1,28 @@ +// const { publicCtx } = require("@/assets/js/config"); +// import {publicCtx} from '@/assets/js/config' const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ - publicPath: "./", + publicPath: 'http://182.92.203.7:3007/books/book/3', + // publicPath:'/books/book/1', transpileDependencies: true, lintOnSave: false, + // devServer: { + // open: true, + // historyApiFallback: true, + // allowedHosts: "all", + // headers: { + // "access-control-allow-origin": "*", + // }, + // client: { + // overlay: { warnings: false, errors: true } + // } + // }, configureWebpack: { output: { library: `app-content`, libraryTarget: "umd", - chunkLoadingGlobal: `webpackJsonp_app-content` - } + chunkLoadingGlobal: `webpackJsonp_app-content`, + }, }, chainWebpack: (config) => { config.module @@ -20,8 +34,8 @@ .loader("change-prefix-loader") .options({ prefix: "el-", - replace: "gp-" + replace: "gp-", }) .end(); - } + }, }); -- Gitblit v1.9.1