/
vue.config.js
45 lines (40 loc) · 1.33 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
const {
defineConfig
} = require('@vue/cli-service')
const path = require('path')
module.exports = {
parallel: false,
lintOnSave: false,
// publicPath: './',
// assetsDir: './',
// entry: './src/components/index.js',
// output: {
// path: path.resolve(__dirname, './dist'),
// publicPath: '/dist/',
// filename: "cgs-data-server-components.min.js",
// library: "cgsDsComponents",
// libraryTarget: 'umd',
// umdNameDefine: true
// },
// configureWebpack: {
// output: {
// publicPath: './',
// }
// },
chainWebpack: config => {
config.resolve.alias.set("@", path.join(__dirname, "src"))
config.resolve.alias.set("@style", path.join(__dirname, "src/assets/style"))
config.resolve.alias.set("@image", path.join(__dirname, "src/assets/image"))
config.resolve.alias.set("@js", path.join(__dirname, "src/assets/js"))
config.resolve.alias.set("@public", path.join(__dirname, "public"))
config.resolve.alias.set("@api", path.join(__dirname, "src/api"))
config.resolve.alias.set("@component", path.join(__dirname, "src/components"))
// config.publicPath = './'
// config.assetsDir = './'
//设置标题 默认不设置的话是项目名字
// config.plugin('html').tap(args => {
// args[0].title = "数据服务"
// return args
// })
}
}