Fork me on GitHub
#shadow-cljs
<
2022-05-04
>
witek21:05:22

Hello. Material UI suggests installing the Roboto font via npm install @fontsource/roboto`` and then importing it via import '@fontsource/roboto/300.css';. What is shadow-cljs equivalent for this? I have tried (:require ["@fontsource/roboto/300.css"]), but this fails to compile:

[:spa] Build failure:
Failed to inspect file
  /p/kunagi-secrets/node_modules/@fontsource/roboto/300.css

Errors encountered while trying to parse file
  /p/kunagi-secrets/node_modules/@fontsource/roboto/300.css
  {:line 2, :column 0, :message "Character '@' (U+0040) is not a valid identifier start char"}