You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create new project with ng new, then start with ng-serve
The log given by the failure
The server starts with following warning:
****************************************************************************************
This is a simple server for use in testing or debugging Angular applications locally.
It hasn't been reviewed for security issues.
DON'T USE IT FOR PRODUCTION!
****************************************************************************************
Desired functionality
This warning was not present in previous build, unless you've been running production builds (optimization: true)
Mention any other details that might be useful
Relevant code in froom @dev-kit/(...)/dev-server/index.js
if (browserOptions.optimization) {
this.context.logger.error(core_1.tags.stripIndents `
****************************************************************************************
This is a simple server for use in testing or debugging Angular applications locally.
It hasn't been reviewed for security issues.
DON'T USE IT FOR PRODUCTION!
****************************************************************************************
`);
Since optimization is automatically translated to an object (from boolean) now, it will always be true. I believe the intent here was to only issue warning when someone is running ng-serve with production builds (?)
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Angular CLI: 7.2.1
Node: 10.6.0
OS: darwin x64
Angular: 7.2.0
Repro steps
Create new project with ng new, then start with ng-serve
The log given by the failure
The server starts with following warning:
Desired functionality
This warning was not present in previous build, unless you've been running production builds (optimization: true)
Mention any other details that might be useful
Relevant code in froom @dev-kit/(...)/dev-server/index.js
Since optimization is automatically translated to an object (from boolean) now, it will always be true. I believe the intent here was to only issue warning when someone is running ng-serve with production builds (?)
The text was updated successfully, but these errors were encountered: