1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| // 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/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`,
| },
| },
| chainWebpack: (config) => {
| config.module
| .rule("change-prefix")
| .test(/\.js$/)
| .include.add("/node_modules/element-ui/lib")
| .end()
| .use("change-prefix")
| .loader("change-prefix-loader")
| .options({
| prefix: "el-",
| replace: "gp-",
| })
| .end();
| },
| });
|
|