Fixes a path error when main is missing in angular-cli.json:
kamik@T460p MINGW64 /D/sandbox/master-proj
$ ng build
Path must be a string. Received undefined
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.resolve (path.js:184:7)
From what I understand this also allows people to use the CLI for apps that have no main at all, correct?
@hansl yes, it will simply compile scripts and styles if there is no main. Was planning on using it to test the Angular ES5 examples on docs.
Could you verify that console.log('hello') is in the output? Alternatively, does ng serve still work? I'd rather test that.
fix(build): fix path error when appConfig has no main