|
|
|
@ -2,26 +2,5 @@ const { defineConfig } = require("@vue/cli-service"); |
|
|
|
var webpack = require('webpack') |
|
|
|
module.exports = defineConfig({ |
|
|
|
transpileDependencies: true, |
|
|
|
lintOnSave:false, |
|
|
|
// devServer: {
|
|
|
|
// proxy: {
|
|
|
|
// "/api": {
|
|
|
|
// target: 'http://xxxxxxxxxxx.com',//代理地址 凡是使用/api
|
|
|
|
// changeOrigin: true,//允许跨域请求
|
|
|
|
// secure: false,
|
|
|
|
// pathRewrite: { //重写路径 替换请求地址中的指定路径
|
|
|
|
// ['^/api']: '/' //将请求地址中的api替换为空
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
configureWebpack: { |
|
|
|
plugins: [ |
|
|
|
new webpack.ProvidePlugin({ |
|
|
|
$:"jquery", |
|
|
|
jQuery:"jquery", |
|
|
|
"windows.jQuery":"jquery" |
|
|
|
}) |
|
|
|
] |
|
|
|
} |
|
|
|
lintOnSave:false |
|
|
|
}); |
|
|
|
|