Skip to content

Commit 12b50b2

Browse files
committed
build: fix Stackblitz examples on Firefox
The Stackblitz examples were hanging on the build step, because we had an import of `@angular/material` in the `styles.scss`. These changes switch to using a pre-built theme. Fixes #31823. Fixes #31973. Fixes #28934.
1 parent 5cd7110 commit 12b50b2

File tree

6 files changed

+17
-35
lines changed

6 files changed

+17
-35
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@angular/router": "catalog:",
4747
"@angular/ssr": "catalog:",
4848
"@angular/youtube-player": "workspace:*",
49-
"@stackblitz/sdk": "^1.5.2",
49+
"@stackblitz/sdk": "^1.11.0",
5050
"moment": "^2.29.1",
5151
"path-normalize": "^6.0.13",
5252
"rxjs": "catalog:",

docs/src/app/shared/stackblitz/stackblitz-writer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const TEMPLATE_FILES = [
4949
'tsconfig.spec.json',
5050
'src/index.html',
5151
'src/main.ts',
52-
'src/styles.scss',
52+
'src/styles.css',
5353
'src/test.ts',
5454
];
5555

docs/src/assets/stackblitz/angular.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@
2828
"browser": "src/main.ts",
2929
"polyfills": ["zone.js", "@angular/localize/init"],
3030
"tsConfig": "tsconfig.app.json",
31-
"inlineStyleLanguage": "scss",
31+
"inlineStyleLanguage": "css",
3232
"assets": ["src/assets"],
33-
"styles": ["src/styles.scss"],
34-
"stylePreprocessorOptions": {
35-
"includePaths": ["node_modules/"]
36-
},
33+
"styles": ["src/styles.css", "@angular/material/prebuilt-themes/azure-blue.css"],
3734
"scripts": []
3835
},
3936
"configurations": {
@@ -92,12 +89,9 @@
9289
"polyfills": ["zone.js", "zone.js/testing"],
9390
"tsConfig": "tsconfig.spec.json",
9491
"karmaConfig": "karma.conf.js",
95-
"inlineStyleLanguage": "scss",
92+
"inlineStyleLanguage": "css",
9693
"assets": ["src/assets"],
97-
"stylePreprocessorOptions": {
98-
"includePaths": ["node_modules/"]
99-
},
100-
"styles": ["src/styles.scss"],
94+
"styles": ["src/styles.css", "@angular/material/prebuilt-themes/azure-blue.css"],
10195
"scripts": []
10296
}
10397
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
body {
2+
font-family: Roboto, 'Helvetica Neue', sans-serif;
3+
margin: 0;
4+
padding: 30px;
5+
height: 100%;
6+
}
7+
8+
html {
9+
height: 100%;
10+
}

docs/src/assets/stackblitz/src/styles.scss

Lines changed: 0 additions & 22 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)