Comments (5)
Yes, you are correct. It is bundled during development and module is not accessed in production (it is accessed as part of bundle, not as external file from node_modules), therefore it is a dev dependency.
from iconify.
Which package are you referring to? SVG framework or one of components?
For most components and for SVG framework you should bundle it, so production file has only one script file to include in web page. It is bundled during development, so it is a dependency only during development. In production it is included in the bundle and bundle does not depend on package anymore.
from iconify.
Also, for SVG framework you can avoid bundling it and use it as dependency, but then you will need to link to SVG framework script in page. It would be a bad idea to link to file inside node_modules in a public document.
Therefore SVG framework script is better to be either included from external website (such as link to code.iconify.design) or copied somewhere. If it is linked as external script and used in bundle as external variable, it is no longer a local dependency and used only during development. If it is copied somewhere, it is done during development, so it is also only a dev dependency.
from iconify.
Hi - I'm referring to the Iconify For React package, as referenced here: https://github.com/iconify/iconify/tree/master/packages/react
Oh, I see what you mean -- during the build process all the resources are bundled then, is that correct? (Sorry, I didn't know that the build process also assembled fonts/svg in this way).
from iconify.
Thanks very much!
from iconify.
Related Issues (20)
- Hey I found an Issue !! HOT 2
- iconify/vue 使用addCollection加载图标集 还会向远程服务器发起请求吗 我想就将图标集打包到项目中
- Release of icons with android library HOT 8
- @iconify/tailwindcss redundant code HOT 16
- 在uniapp中怎么使用unocss+iconify实现图标展示啊? HOT 1
- 在uniapp中显示不出来图标 HOT 1
- @iconify/tailwind can't use underline HOT 3
- Opacity on icons HOT 1
- Feat: Type definition for all icon names HOT 1
- Icon toggles visibility when scrolled in/out of viewport - observer="false" does not work? HOT 7
- `@iconify-icon/react` prop `observe` didn't work HOT 2
- finding the "real corner" of an svg HOT 2
- Prefers reduced motion with transitions HOT 6
- I can't tell why is this happening HOT 9
- Npm install broken for 1.0.0 HOT 1
- Allows adding additional `attributes` when using `getIconCSS` HOT 5
- [BUG] Class extends value undefined is not a constructor or null HOT 2
- Plugin generates a lot of repeated CSS code HOT 2
- Unexpected element: <text> HOT 2
- Iconset request: Fluentui Emoji HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iconify.