weinre-webpack
v0.0.8
Published
weinre for webpack
Downloads
7
Readme
weinre webpack
Feature
- Use weinre
- Remote debug on web console.
- Auto find out idle port.
- Auto inject script tag to html file in webpack-dev-server.
Install
npm i weinre-webpack
Usage
import Weinre from 'weinre-webpack';
export default {
...
plugins: [
new Weinre({
runServer : true, // whether run weinre server in background when run webpack
defaultId : 'anonymous', // define a default id, if define 'auto', it will give you a random id. format is `${platform}-${browser}-${uid}`
appendScriptTag : true, // whether inject socket script tag automatically
// see: http://people.apache.org/~pmuellr/weinre/docs/latest/Running.html
httpPort : 8080, // if not define, it can use a idle port
boundHost : 'localhost', // if not define, it can use local ip( not 127.0.0.1)
verbose : false,
debug : false,
readTimeout : 5,
deathTimeout : 15,
}),
],
...
}
Muti-User
I hope that weinre can find out all the connect by target id, but it didn't. so muti-user are not support, now only one user. you can configure the options to define another id. Anonymous is default.
At last
You can also use the debug plugin of browsersync.