Skip to content

Commit

Permalink
fix(mobile): update path to reflect updated service worker package (#746
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jeffbcross authored and hansl committed May 13, 2016
1 parent 263e23b commit 818fb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/broccoli/angular2-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Angular2App extends BroccoliPlugin {
}

if (this.ngConfig.apps[0].mobile) {
var ServiceWorkerPlugin = require('angular2-service-worker').ServiceWorkerPlugin;
var ServiceWorkerPlugin = require('@angular/service-worker').ServiceWorkerPlugin;
var swTree = new ServiceWorkerPlugin(merged);
merged = BroccoliMergeTrees([merged, swTree], {
overwrite: true
Expand Down Expand Up @@ -357,7 +357,7 @@ class Angular2App extends BroccoliPlugin {
];

if (this.ngConfig.apps[0].mobile) {
vendorNpmFiles.push('angular2-service-worker/dist/worker.js')
vendorNpmFiles.push('@angular/service-worker/dist/worker.js')
}

if (this._options.vendorNpmFiles) {
Expand Down

0 comments on commit 818fb19

Please sign in to comment.