Skip to content

Commit aa32054

Browse files
authored
fix(webpack): fix webpack vendor import (#2177)
exclude angular-socket-io when user doesn't select socket.io
1 parent 9806bcd commit aa32054

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: templates/app/webpack.make.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ module.exports = function makeWebpackConfig(options) {
4949
<%_ if(filters.ngroute) { _%>
5050
'angular-route',<% } %>
5151
'angular-sanitize',
52-
'angular-socket-io',
52+
<%_ if(filters.socketio) { _%>
53+
'angular-socket-io',<% } %>
5354
'angular-ui-bootstrap',
5455
<%_ if(filters.uirouter) { _%>
5556
'angular-ui-router',<% } %>

0 commit comments

Comments
 (0)