plugins: [
new WebpackHttpPushServerPlugin({
dir: '.',
receiver: 'http://127.0.0.1:8899/reciver', // server reciver url
to: '/home/work/{your project}/'
})
]
- Copy webpack-http-push-server-plugin/src/app.js to your server
- npm i express && fs-extra && body-parser
- node app.js