2023-12-16 18:10:04 +08:00
|
|
|
|
'use strict'
|
|
|
|
|
|
|
|
|
|
|
|
const path = require('path')
|
|
|
|
|
|
|
2024-07-16 18:00:59 +08:00
|
|
|
|
var proxyUrl =
|
2024-03-07 09:19:00 +08:00
|
|
|
|
|
2024-07-16 18:00:59 +08:00
|
|
|
|
module.exports = {
|
|
|
|
|
|
dev: {
|
|
|
|
|
|
// Paths
|
|
|
|
|
|
assetsSubDirectory: 'static',
|
|
|
|
|
|
assetsPublicPath: '/',
|
|
|
|
|
|
host: 'localhost', // can be overwritten by process.env.HOST
|
|
|
|
|
|
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
|
|
|
|
autoOpenBrowser: false,
|
|
|
|
|
|
errorOverlay: true,
|
|
|
|
|
|
notifyOnErrors: true,
|
|
|
|
|
|
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
|
|
|
|
|
|
devtool: 'cheap-module-eval-source-map',
|
|
|
|
|
|
cacheBusting: true,
|
|
|
|
|
|
cssSourceMap: true,
|
|
|
|
|
|
proxyTable: {
|
2024-03-07 09:19:00 +08:00
|
|
|
|
'/screen': {
|
2024-04-02 13:17:24 +08:00
|
|
|
|
// target: 'http://112.29.103.165:21626',//重庆
|
2024-04-03 09:07:54 +08:00
|
|
|
|
target: 'http://192.168.0.14:21624',//测试
|
|
|
|
|
|
// target: 'http://10.40.92.74:8080',
|
2024-03-07 09:19:00 +08:00
|
|
|
|
changeOrigin: true,
|
|
|
|
|
|
// secure: true, //如果是https接口,需要配置这个参数
|
|
|
|
|
|
pathRewrite: {
|
2024-07-16 18:00:59 +08:00
|
|
|
|
'^/screen': '/'
|
2024-03-07 09:19:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2024-07-16 18:00:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
build: {
|
|
|
|
|
|
index: path.resolve(__dirname, '../dist/index01.html'),
|
|
|
|
|
|
// Paths
|
|
|
|
|
|
assetsRoot: path.resolve(__dirname, '../dist'),
|
|
|
|
|
|
assetsSubDirectory: 'static01',
|
2024-07-17 10:59:52 +08:00
|
|
|
|
assetsPublicPath: '/bigScrap/',
|
2024-07-16 18:00:59 +08:00
|
|
|
|
productionSourceMap: false,
|
|
|
|
|
|
devtool: '#source-map',
|
|
|
|
|
|
productionGzip: false,
|
|
|
|
|
|
productionGzipExtensions: ['js', 'css'],
|
|
|
|
|
|
bundleAnalyzerReport: process.env.npm_config_report
|
2024-03-07 09:19:00 +08:00
|
|
|
|
}
|
2023-12-16 18:10:04 +08:00
|
|
|
|
}
|