初始化项目
This commit is contained in:
38
vue.config.js
Normal file
38
vue.config.js
Normal file
@@ -0,0 +1,38 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
var webpack = require('webpack')
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
chainWebpack: config => {
|
||||
config
|
||||
.plugin('html')
|
||||
.tap(args => {
|
||||
args[0].title = 'PIKO管理后台'
|
||||
return args
|
||||
})
|
||||
},
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
'windows.jQuery': 'jquery',
|
||||
Popper: ['popper.js', 'default']
|
||||
}),
|
||||
],
|
||||
},
|
||||
devServer: {
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
},
|
||||
proxy: {
|
||||
'/': {
|
||||
ws: false,
|
||||
target: process.env.VUE_APP_API_BASE_URL,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/': ''
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user