20230517
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user