new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true,
proxy: {
'/api/*': {
target: 'http://127.0.0.1:8000', // server with api
secure: false
}
},
}).listen(4000, 'localhost', function(err) {
if (err) {
console.log(err);
}
console.log('Listening at localhost:4000');
});
In conforming documents, there is only one body element.Источник - W3C HTML5 API