diff --git a/generators/client/templates/angular/webpack/_webpack.dev.js b/generators/client/templates/angular/webpack/_webpack.dev.js index eb92afd319dd..74f7810109b3 100644 --- a/generators/client/templates/angular/webpack/_webpack.dev.js +++ b/generators/client/templates/angular/webpack/_webpack.dev.js @@ -56,7 +56,10 @@ module.exports = webpackMerge(commonConfig({ env: ENV }), { new BrowserSyncPlugin({ host: 'localhost', port: 9000, - proxy: 'http://localhost:9060' + proxy: { + target: 'http://localhost:9060'<% if (websocket === 'spring-websocket') { %>, + ws: true<% } %> + } }, { reload: false }),