mirror of
https://github.com/wmn1525/grasscutterTools.git
synced 2024-11-29 02:27:19 +00:00
37 lines
1007 B
JavaScript
37 lines
1007 B
JavaScript
module.exports = {
|
|
/**
|
|
* You will need to set publicPath if you plan to deploy your site under a sub path,
|
|
* for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
|
|
* then publicPath should be set to "/bar/".
|
|
* In most cases please use '/' !!!
|
|
* Detail: https://cli.vuejs.org/config/#publicpath
|
|
*/
|
|
publicPath: "./",
|
|
outputDir: "dist",
|
|
assetsDir: "static",
|
|
lintOnSave: process.env.NODE_ENV === "development",
|
|
productionSourceMap: false,
|
|
devServer: {
|
|
port: 9550,
|
|
open: true,
|
|
overlay: {
|
|
warnings: false,
|
|
errors: true,
|
|
},
|
|
proxy: {
|
|
// change xxx-api/login => mock/login
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
"/game": {
|
|
ws: false,
|
|
target: "https://juejin-game.bytedance.com",
|
|
changeOrigin: true,
|
|
},
|
|
"/user": {
|
|
ws: false,
|
|
target: "https://api.juejin.cn/user_api/v1/user/get",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
};
|