proxy-production-webpack-plugin
v4.0.5
Published
Run the built app by webpack using localhost
Downloads
2
Maintainers
Readme
proxyProductionPlugin
Run the built app by webpack using localhost
install
npm i proxy-production-webpack-plugin -D
usage
const ProxyProductionPlugin = require('proxy-production-webpack-plugin');
new ProxyProductionPlugin({
host: 'http://sandbox.api.puri.intl.miui.com', // server host
publicPath: 'http://sandbox.h5.puri.intl.miui.com/puri', // static resources path
port: 8000, //localhost port
entry: /^_puri/, // router for index
messages: ['http://localhost:8000/_puri/share/v1/topic/Hindi/IN/en/20181121'], // test link
});