Pergunta

I'm using Meteor to build an application. I used the bootstrap-3 meteorite package. But I'm wondering why I would want to use that over downloading and including Bootstrap 3 in my project myself.

I guess this question could apply to other languages and frameworks as well. Are there any advantages to using packages, gems, etc. when you could manually include it yourself in the project?

Foi útil?

Solução

I can't answer for any other frameworks, but the quick and dirty of it is this: The packaged versions have namespacing to protect your global namespace from pollution, and of course dealing with load order correctly, since packages get loaded before your project does. As for bootstrap in particular, the atmsphere packages override CSS locations to make everything 'just work', especially with glyphIcons.

Of course there are other benefits to packaged versions, including specifying what components run on the client versus the server, what that package relies on to work (For instance underscore), what version of Meteor the code is compatible with, possible github repos to make sure you get the latest version whenever you do a meteor update and more. Meteor has put a lot of thought behind the packaging, so it's worth using packaged versions.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top