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

Commit

Permalink
fix(angular): replace css imports with CDN <link>s (#537)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tkrugg authored Nov 3, 2021
1 parent 349b38d commit fb4c2a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/__snapshots__/templates.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ exports[`Templates Angular InstantSearch File content: angular.json 1`] = `
\\"src/assets\\"
],
\\"styles\\": [
\\"node_modules/instantsearch.css/themes/satellite.css\\",
\\"src/styles.css\\"
],
\\"scripts\\": []
Expand Down Expand Up @@ -442,6 +441,7 @@ exports[`Templates Angular InstantSearch File content: src/index.html 1`] = `
<base href=\\"/\\">
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\">
<link rel=\\"icon\\" type=\\"image/x-icon\\" href=\\"favicon.ico\\">
<link href=\\"https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/satellite.css\\" rel=\\"stylesheet\\" />
</head>
<body>
<app-root></app-root>
Expand Down
1 change: 0 additions & 1 deletion src/templates/Angular InstantSearch/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"src/assets"
],
"styles": [
"node_modules/instantsearch.css/themes/satellite.css",
"src/styles.css"
],
"scripts": []
Expand Down
1 change: 1 addition & 0 deletions src/templates/Angular InstantSearch/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/satellite.css" rel="stylesheet" />
</head>
<body>
<app-root></app-root>
Expand Down

0 comments on commit fb4c2a8

Please sign in to comment.