116 lines
2.8 KiB
JavaScript
116 lines
2.8 KiB
JavaScript
// // const webpack = require("webpack")
|
||
// module.exports = {
|
||
// publicPath: './',
|
||
// assetsDir: 'static',
|
||
// productionSourceMap: false,
|
||
// devServer: {
|
||
// // public: 'http://192.168.110.156:8080/', // 你自己本地的ip地址:端口号
|
||
// // host:'localhost'
|
||
// public: '0.0.0.0:8080/',
|
||
// 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: [
|
||
// // new webpack.ProvidePlugin({
|
||
// // 'window.Quill': 'quill'
|
||
// // })
|
||
// // ]
|
||
// // }
|
||
// }
|
||
|
||
|
||
// const webpack = require("webpack")
|
||
module.exports = {
|
||
publicPath: './',
|
||
assetsDir: 'static',
|
||
productionSourceMap: false,
|
||
devServer: {
|
||
|
||
// public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号
|
||
port: '8080',
|
||
open: true,
|
||
overlay: {
|
||
warnings: false,
|
||
errors: true
|
||
},
|
||
proxy: {
|
||
'/api': {
|
||
// target: 'https://www.tmrjournals.cn',
|
||
// target: 'http://www.tougao.com/public/index.php/',
|
||
// target: 'http://www.tougao.com/',
|
||
// target: 'http://192.168.110.110/tougao/public/index.php/',
|
||
// target: 'http://api.tmrjournals.com/public/index.php/',//正式
|
||
// target: 'http://zmzm.tougao.dev.com/',//晓玲
|
||
target: 'https://submission.tmrjournals.com/',//正式
|
||
// target: 'http://tougaotest.tmrjournals.com/public/index.php/',//测试环境
|
||
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: [
|
||
// new webpack.ProvidePlugin({
|
||
// 'window.Quill': 'quill'
|
||
// })
|
||
// ]
|
||
// }
|
||
}
|