-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
41 lines (38 loc) · 840 Bytes
/
vue.config.js
File metadata and controls
41 lines (38 loc) · 840 Bytes
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 { defineConfig } = require('@vue/cli-service');
const webpack = require('webpack');
module.exports = defineConfig({
outputDir:'dist',
assetsDir:'static',
publicPath:'./',
transpileDependencies: true,
// 去掉打包生成的.map 文件
productionSourceMap:false,
// 禁用esLint检查
lintOnSave: false,
// 配置jquery
chainWebpack: (config) => {
//引入ProvidePlugin
config.plugin("provide").use(webpack.ProvidePlugin, [
{
$: "jquery",
jquery: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
},
]);
},
devServer: {
host:'',
port: 8080,
proxy: {
"/": {
target: 'http://159.75.201.225:8000/',
ws: false,
changeOrigin: true,
pathRewrite: {
"^/": "/"
}
},
},
},
})