svelte-material-ui icon indicating copy to clipboard operation
svelte-material-ui copied to clipboard

what is "svelte-material-ui": "^7.0.0",

Open siddhsql opened this issue 1 year ago • 2 comments

this is a question not a bug report. I am looking at an existing project and it has

"svelte-material-ui": "^7.0.0",

in dependencies. I am trying to understand if:

  1. is this needed since I don't find mention of it in the installation instructions?
  2. further is this supposed to be a dependency vs devDependency?

siddhsql avatar Oct 09 '24 16:10 siddhsql

That package just pulls in every other package. It's not necessary unless you need the bare.css file that has everything.

hperrin avatar Oct 09 '24 17:10 hperrin

So whether you use dependency or devDependency depends on your setup. For most Svelte projects, you'll use devDependency, since there's a build step that packages everything. But you may also need to use dependency if you need the bare.css files in your node_modules in production.

hperrin avatar Oct 09 '24 17:10 hperrin