-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
33 lines (31 loc) · 885 Bytes
/
vue.config.js
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
const { defineConfig } = require("@vue/cli-service");
const ElementPlus = require("unplugin-element-plus/webpack");
const AutoImport = require("unplugin-auto-import/webpack");
const Components = require("unplugin-vue-components/webpack");
const { ElementPlusResolver } = require("unplugin-vue-components/resolvers");
module.exports = defineConfig({
transpileDependencies: true,
publicPath: "./",
outputDir: "./docs/",
productionSourceMap: false,
configureWebpack: {
plugins: [
ElementPlus({
importStyle: "sass",
useSource: true,
}),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
},
chainWebpack: (config) => {
config.plugin("html").tap((args) => {
args[0].title = "pp+ 在一起吧";
return args;
});
},
});