Skip to content

Commit

Permalink
fix: process.env.CORDOVA_PLATFORM undefined in serve-browser and devS…
Browse files Browse the repository at this point in the history
…erver not working
  • Loading branch information
m0dch3n committed Oct 9, 2018
1 parent 7e1923a commit cfb5db8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ module.exports = (api, options) => {

api.registerCommand('cordova-serve-browser', async args => {
args.open = true
const platform = 'browser'
chainWebPack(platform)
configureDevServer(platform)
return await api.service.run('serve', args)
})
api.registerCommand('cordova-build-browser', async args => {
Expand Down

0 comments on commit cfb5db8

Please sign in to comment.