File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/angular_devkit/build_webpack/src/dev-server Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
169169
170170 const server = new WebpackDevServer ( webpackCompiler , webpackDevServerConfig ) ;
171171
172+ let first = true ;
172173 // tslint:disable-next-line:no-any
173174 ( webpackCompiler as any ) . hooks . done . tap ( 'angular-cli' , ( stats : webpack . Stats ) => {
174175 if ( ! browserOptions . verbose ) {
@@ -183,7 +184,8 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
183184 }
184185 obs . next ( { success : true } ) ;
185186
186- if ( options . open ) {
187+ if ( first && options . open ) {
188+ first = false ;
187189 opn ( serverAddress + webpackDevServerConfig . publicPath ) ;
188190 }
189191 } ) ;
You can’t perform that action at this time.
0 commit comments