-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Closed
Copy link
Description
Versions
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 6.0.1
Node: 8.11.1
OS: win32 x64
Angular: 6.0.1
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.1
@angular-devkit/build-angular 0.6.1
@angular-devkit/build-optimizer 0.6.1
@angular-devkit/core 0.6.1
@angular-devkit/schematics 0.6.1
@ngtools/webpack 6.0.1
@schematics/angular 0.6.1
@schematics/update 0.6.1
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
- Added
"angularCompilerOptions": { "preserveWhitespaces": true }
into tsconfig.json like https://angular.io/guide/aot-compiler#angular-compiler-options says - Run ng serve, ng serve --aot, ng build, ng build --aot, ng build --prod --aot
Observed behavior
"preserveWhitespaces": true
doesn't affect ng serve nor ng build
Desired behavior
ng serve and ng build should preserve whitespaces globally
Mention any other details that might be useful (optional)
I've modified my main.ts file for working on ng serve:
platformBrowserDynamic().bootstrapModule(AppModule, {
preserveWhitespaces: true
})
.catch(err => console.log(err));
but production build still is not preserving white spaces globally
sinedied, smoke, itsib, qodunpob and tamtakoe
Metadata
Metadata
Assignees
Labels
No labels