Skip to content

Commit 425b541

Browse files
committed
Add support for scss #10
1 parent 30ad2c1 commit 425b541

File tree

8 files changed

+15
-7
lines changed

8 files changed

+15
-7
lines changed

project/application/angular.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"sourceRoot": "src",
99
"projectType": "application",
1010
"prefix": "app",
11-
"schematics": {},
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"styleext": "scss"
14+
}
15+
},
1216
"architect": {
1317
"build": {
1418
"builder": "@angular-devkit/build-angular:browser",
@@ -19,7 +23,7 @@
1923
"polyfills": "src/polyfills.ts",
2024
"tsConfig": "src/tsconfig.app.json",
2125
"assets": ["src/favicon.ico", "src/assets"],
22-
"styles": ["src/styles.css"],
26+
"styles": ["src/styles.scss"],
2327
"scripts": []
2428
},
2529
"configurations": {
@@ -66,7 +70,7 @@
6670
"polyfills": "src/polyfills.ts",
6771
"tsConfig": "src/tsconfig.spec.json",
6872
"karmaConfig": "src/karma.conf.js",
69-
"styles": ["src/styles.css"],
73+
"styles": ["src/styles.scss"],
7074
"scripts": [],
7175
"assets": ["src/favicon.ico", "src/assets"]
7276
}
@@ -85,7 +89,11 @@
8589
"sourceRoot": "src",
8690
"projectType": "application",
8791
"prefix": "app",
88-
"schematics": {},
92+
"schematics": {
93+
"@schematics/angular:component": {
94+
"styleext": "scss"
95+
}
96+
},
8997
"architect": {
9098
"build": {
9199
"builder": "@angular-devkit/build-angular:server",

project/application/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css'],
6+
styleUrls: ['./app.component.scss'],
77
})
88
export class AppComponent {
99
title = 'Welcome to angular ssr app!';

project/application/src/app/modules/home/home.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SeoPropertiesService } from '../core/services/seo-properties/seo-proper
77
@Component({
88
selector: 'app-home',
99
templateUrl: './home.component.html',
10-
styleUrls: ['./home.component.css'],
10+
styleUrls: ['./home.component.scss'],
1111
})
1212
export class HomeComponent implements OnInit, OnDestroy {
1313
title = 'Home page!';

project/application/src/app/modules/not-found/not-found.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { SeoPropertiesService } from '../core/services/seo-properties/seo-proper
88
@Component({
99
selector: 'app-not-found',
1010
templateUrl: './not-found.component.html',
11-
styleUrls: ['./not-found.component.css'],
11+
styleUrls: ['./not-found.component.scss'],
1212
})
1313
export class NotFoundComponent implements OnInit, OnDestroy {
1414
title = 'Page not found';

0 commit comments

Comments
 (0)