闫增涛
2024-05-15 af32b4dea68d727f4f7fe3d594282931e973f430
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/1',
  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`
    }
    },
  },
  chainWebpack: (config) => {
    config.module