-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvue.config.js
More file actions
39 lines (38 loc) · 1.35 KB
/
Copy pathvue.config.js
File metadata and controls
39 lines (38 loc) · 1.35 KB
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
const path = require('path');
const webpack = require('webpack');
module.exports = {
publicPath: '/',
devServer: {
overlay: {
warnings: false,
errors: true
}
},
// lintOnSave: process.env.NODE_ENV !== 'production',
lintOnSave: false,
configureWebpack: config => {
config.output.filename = 'js/[name].[hash].js';
config.plugins.push(new webpack.DefinePlugin({
'VUE_ENV': JSON.stringify({
// url: 'http://121.4.224.236:9000',
url: 'http://ops.aiops724.com',
goUrl: 'http://go-ops.aiops724.com',
})
}))
},
chainWebpack: config => {
config.resolve.alias
.set('@app', path.join(__dirname, './src'))
.set('@assets', path.join(__dirname, './src/assets'))
.set('@mixins', path.join(__dirname, './src/mixins'))
.set('@components', path.join(__dirname, './src/components'))
.set('@utils', path.join(__dirname, './src/utils'))
.set('@views', path.join(__dirname, './src/views'))
.set('@store', path.join(__dirname, './src/store'))
.set('@services', path.join(__dirname, './src/services'));
config.plugin('html').tap(args => {
args[0].title = 'Lightning';
return args;
})
}
}