const pxRem = require("postcss-pxtorem"); module.exports = { // rem css:{ loaderOptions:{ postcss: { //selectorBlackList正则过滤,符合的class不进行rem转化 //单个的css语句需过滤的情况下,可以使用PX或Px单位 plugins:[pxRem({ autoprefixer:{}, rootValue: 75, propList: ["*"],// 需要做转化处理的属性,如`hight`、`width`、`margin`等,`*`表示全部 默认全部处理 selectorBlackList:[".ig-",".dp-"] })] } } }, lintOnSave: false, devServer: { port: 202, // 端口 proxy: { // '/websocket': { // target: 'ws://192.168.0.22:8080/', // // target: 'http://82.157.123.54:9010', // ws: true, // changeOrigin: true, // // pathRewrite: { // // '^/websocket': '/', // // } // }, '/api': { target: 'http://221.214.111.254:9000/',//小飞龙的 // target: 'http://192.168.0.162:9000/',//PC的 // target: 'http://192.168.0.110:8080',//公司公用的 // target: 'http://192.168.0.196:8080',//树莓派 // target: 'http://192.168.0.74:8080',//郑伟机器的2 // target: 'http://192.168.0.243:9000/',//刘海生机器的 // target: ' http://192.168.0.222:9000/',//redmi的 changeOrigin: true, pathRewrite: { '^/api': '', } }, // 查询最新wgt版本 '/bpi': { target: 'http://192.168.0.3:19096',//公司公用的 changeOrigin: true, pathRewrite: { '^/bpi': '', } } } }, // 输出文件目录 outputDir: 'D:\\Work\\SportFitness\\TV2\\build', publicPath: './', productionSourceMap: false, };