Skip to content

Commit d6f0355

Browse files
committed
Use self-hosted material-icons in demo (npm: [email protected], repository: https://github.com/marella/material-icons)
1 parent 49ce553 commit d6f0355

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

demo/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ kotlin {
2424
implementation(compose.desktop.currentOs)
2525
}
2626
}
27-
/* TODO: uncomment or remove
2827
named("jsMain") {
2928
dependencies {
29+
/* TODO: uncomment or remove
3030
// copied from https://github.com/mpetuska/kmdc
3131
3232
// SCSS dependencies
3333
implementation(devNpm("style-loader", "^3.3.1"))
3434
implementation(devNpm("css-loader", "^6.7.1"))
3535
implementation(devNpm("sass-loader", "^13.0.0"))
3636
implementation(devNpm("sass", "^1.52.1"))
37+
*/
38+
39+
40+
implementation(npm("material-icons", "1.13.1"))
3741
}
3842
}
39-
*/
4043
}
4144
}
4245

demo/src/jsMain/resources/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<meta charset="UTF-8">
77
<title>Compose Multiplatform Material demo</title>
8-
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
98
</head>
109

1110
<body>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const mainEntryExtras = ['material-icons/iconfont/material-icons.css',];
2+
if (config.entry.main != null)
3+
config.entry.main.push(...mainEntryExtras);
4+
else
5+
config.entry.main = mainEntryExtras;

kotlin-js-store/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,11 @@ lru-cache@^6.0.0:
23362336
dependencies:
23372337
yallist "^4.0.0"
23382338

2339+
2340+
version "1.13.1"
2341+
resolved "https://registry.yarnpkg.com/material-icons/-/material-icons-1.13.1.tgz#27de79bf68a4db0a1caec099d4f54ba658770e89"
2342+
integrity sha512-6EwhlEa4rwydNSWw11ig1oz/h/KcarJXn4n50Wd69v5Eh026Y6xBo9zLPeX4iF8+qUZV862X0AUUA0m0VaihWg==
2343+
23392344
material-icons@^1.10.4:
23402345
version "1.12.2"
23412346
resolved "https://registry.yarnpkg.com/material-icons/-/material-icons-1.12.2.tgz#68dbf74309ebfbd791eea75b5fec2d74b07d558f"

0 commit comments

Comments
 (0)