This commit is contained in:
wangjinlei
2023-05-17 13:21:01 +08:00
parent 5ed3073b6e
commit f087543b0f
77 changed files with 10625 additions and 4542 deletions

View File

@@ -3,9 +3,44 @@ module.exports = {
publicPath: './',
assetsDir: 'static',
productionSourceMap: false,
devServer: {
public: 'http://192.168.110.156:8080/' // 你自己本地的ip地址:端口号
}
devServer: {
public: 'http://192.168.110.156:8080/', // 你自己本地的ip地址:端口号
// port: '8080',
// open: true,
// overlay: {
// warnings: false,
// errors: true
// },
// proxy: {
// '/api': {
// // target: 'https://www.tmrjournals.cn',
// target: 'https://submission.tmrjournals.com/',
// changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// }
// }
// }
},
// devServer: {
// port: port,
// open: true,
// overlay: {
// warnings: false,
// errors: true
// },
// // before: require('./mock/mock-server.js') // 注释掉这一行
// proxy: {
// '/dev-api': { // 因为默认开发api就是dev-api所以我这里就没有改其他名字也叫dev-api
// target: 'https://ceshi.xxxxxxxx.com/',
// pathRewrite: {
// '^/dev-api': ''
// }, // 记得也哟改dev-api
// }
// }
// },
// 配置插件参数
// configureWebpack: {
// plugins: [