标签:div style stat target 实现 nbsp rewrite get code
var express = require(‘express‘) var proxy = require(‘http-proxy-middleware‘) var app = express() app.use(‘/api‘, proxy({ target: ‘http://xxxxx‘, // 目标代理地址 changeOrigin: true, pathRewrite: { ‘^/api‘: ‘‘ } })) app.use(express.static(‘dist‘)) app.get(‘*‘, function(req, res) { res.sendfile(‘./dist/index.html‘) }) app.listen(8080, function(){ do sth. })
标签:div style stat target 实现 nbsp rewrite get code
原文地址:https://www.cnblogs.com/bbcfive/p/10263356.html