-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @ngtools/webpackneeds: more infoReporter must clarify the issueReporter must clarify the issue
Milestone
Description
Bug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [x ] feature request
Versions.
1.5.0 (ejected webpack config)
Desired functionality.
When one does ng eject --prod --aot
we see that in the Angular Compiler Options, platform: 0
.
Maybe it could use a String enum
for this enum:
angular-cli/packages/@ngtools/webpack/src/angular_compiler_plugin.ts
Lines 78 to 82 in cb53fb9
export enum PLATFORM { | |
Browser, | |
Server | |
} | |
Could be changed to:
export const enum PLATFORM {
Browser = 'Browser',
Server = 'Server'
}
Which would produce in the ejected webpack config:
new AngularCompilerPlugin({
...
platform: 'Browser'
});
Thoughts?
Thanks!
Joe
Metadata
Metadata
Assignees
Labels
area: @ngtools/webpackneeds: more infoReporter must clarify the issueReporter must clarify the issue