Skip to content

Commit b2fe839

Browse files
authored
Merge pull request #234 from thedyrt/cdv-serve-hook-options
Pass `cdv:serve` options to build hooks
2 parents 1594f1c + 71f2cbe commit b2fe839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/commands/serve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = Command.extend({
118118
.then(validateAllowNavigation.prepare(true))
119119
.then(validatePlatform.prepare())
120120
.then(validatePlugin.prepare())
121-
.then(hook.prepare('beforeBuild'))
121+
.then(hook.prepare('beforeBuild', options))
122122
.then(this._autoFindLiveReloadPort.bind(this, options))
123123
.then(function(serveOpts) {
124124

@@ -128,7 +128,7 @@ module.exports = Command.extend({
128128
return cordovaBuild.run(platform);
129129
}
130130
})
131-
.then(hook.prepare('afterBuild'))
131+
.then(hook.prepare('afterBuild', options))
132132
.then(function() {
133133
var config = command.project.config(serveOpts.environment);
134134

0 commit comments

Comments
 (0)