Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit fb4c2a8

Browse files
authored
fix(angular): replace css imports with CDN <link>s (#537)
* fix(angular): replace css imports with CDN <link>s Using CSS from node_modules is causing problems with CodeSandbox cf. codesandbox/codesandbox-client#6235 * update e2e test snapshots * remove unecessary reset.css
1 parent 349b38d commit fb4c2a8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

e2e/__snapshots__/templates.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ exports[`Templates Angular InstantSearch File content: angular.json 1`] = `
101101
\\"src/assets\\"
102102
],
103103
\\"styles\\": [
104-
\\"node_modules/instantsearch.css/themes/satellite.css\\",
105104
\\"src/styles.css\\"
106105
],
107106
\\"scripts\\": []
@@ -442,6 +441,7 @@ exports[`Templates Angular InstantSearch File content: src/index.html 1`] = `
442441
<base href=\\"/\\">
443442
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\">
444443
<link rel=\\"icon\\" type=\\"image/x-icon\\" href=\\"favicon.ico\\">
444+
<link href=\\"https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/satellite.css\\" rel=\\"stylesheet\\" />
445445
</head>
446446
<body>
447447
<app-root></app-root>

src/templates/Angular InstantSearch/angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"src/assets"
2828
],
2929
"styles": [
30-
"node_modules/instantsearch.css/themes/satellite.css",
3130
"src/styles.css"
3231
],
3332
"scripts": []

src/templates/Angular InstantSearch/src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<base href="/">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<link rel="icon" type="image/x-icon" href="favicon.ico">
9+
<link href="https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/satellite.css" rel="stylesheet" />
910
</head>
1011
<body>
1112
<app-root></app-root>

0 commit comments

Comments
 (0)