I'm trying to set up a project in Sapper (with Svelte).
I want to use the Materialize CSS framework and JS components in my project.
How could I set this up?
I'm trying to set up a project in Sapper (with Svelte).
I want to use the Materialize CSS framework and JS components in my project.
How could I set this up?
Run
npm i -D materialize-css
(andnpm i -D @types/materialize-css
if using typescript)Then just add
to
src/client.js
and
to
src/template.html
EDIT: If using typescript, add
to
tsconfig.json
Original Reddit comment answer