Open
Description
Hello. I'm trying to figure out where this setting is to be placed for a meteor CLI angular-metoer app.
Angular 6 has defaulted this to on by default which removes all spaces in any HTML markup. This breaks my UI as it causes spans to butt up against each other and will be a real pain to workaround.
I have figured out how to fix this in JIT mode by adding an option to appComponent:
@Component({
selector: "retis-app",
templateUrl: './app.component.html',
styleUrls: [
'./css/0-importAllScssFiles.scss',
'./app.component.scss',
],
encapsulation: ViewEncapsulation.None, // tslint:disable-line // This makes the scss available to all components
animations: [ routerTransition, animPatientBanner, animGrowFadeOut, animGrow ],
preserveWhitespaces: true,
})
The fix for AOT mode seems to be to add the following to tsconfig.app.json.
"angularCompilerOptions": {
"preserveWhitespaces": true
},
However, there is no tsconfig.app.json file for a meteorCLI app and adding the setting to tsconfig.json does not work. Where should this be configured and what contents should it have please?
Metadata
Metadata
Assignees
Labels
No labels