Comments (6)
Bower is usually used for accessing the source code (e.g. sass) so you can build your own custom distribution:
https://www.muicss.com/docs/v1/css-js/customization
Can you show me an example of where it's useful to access the dist folder from Bower?
from mui.
It may be useful when developing a small project that doesn't have a build system, so you can use the bower component right after issuing bower install
, and you don't have to figure out how to build the component, nor you have to rebuild it each time you run bower install
(not that it's difficult, especially with mui
). Most components do that (e.g. jquery, bootstrap, d3).
from mui.
Is it easier to use the .css files from bower as opposed to hot linking from the CDN? Here's boilerplate which includes links to the CDN:
https://www.muicss.com/docs/v1/css-js/boilerplate-html
It seems like the bootstrap-sass-official bower package only includes the source files:
https://github.com/twbs/bootstrap-sass/blob/master/bower.json
I'm curious to hear more about how you're using bower and why it's more useful to access pre-built distribution files from bower over the CDN or the download package.
from mui.
I personally prefer to serve the files locally rather than from a CDN, for security and reliability reasons. It's not that I don't trust the CDN, but for developing an application that manipulates sensible data (such as passwords) or can be ran on an infrastructure that may have a proxy which could block the CDN for whatever reason, proceeding this way is better.
Bootstrap-sass doesn't seem to have pre-built files on its git server, however, mui does, which is a good point, because the only obstacle blocking the pre-built files to be included in bower is this little line in bower.json
.
Using pre-built files with bower is really useful when you can't/won't use a CDN (e.g. reasons mentioned above), and you can't/won't configure a build system (e.g. for small projects, or when you don't have time to do so). You just have to point yours link
and script
tags to the correct file in bower_components
folder (or whatever name you gave it), and you're good to go. What's more useful, you just can run bower update
and all your dependencies are up to date. However, currently with mui I need to use a git submodule, and update it separately, which is less practical than bower.
Let me insist on the fact that's it's only one line to remove, which will benefit some users and won't disturb others (apart from some extra files downloaded, I don't think it's a problem).
It's a matter of opinion, really, so I won't blame anybody if it's not done so 😄.
from mui.
Added 'dist' directory to bower.json in v0.1.15 via 45dfd7d
You can also download the pre-built package as a zip file from the MUI website:
https://www.muicss.com
from mui.
Thanks :-)
from mui.
Related Issues (20)
- React Input component crashes when inputRef is used HOT 9
- npm run build-e2e-tests fails with an error HOT 2
- WebComponents part is outdated? Should we perfect it? HOT 1
- Label in input form not properly visualized HOT 2
- React Dividers example broken? HOT 1
- Configuration via mocha.opts is DEPRECATED HOT 2
- Clarify or change behavior of Tabs in CSS/JS HOT 3
- How we can update the muicss docs? HOT 3
- Outlined text HOT 2
- Dark mode support via automatic CSS media query prefers-color-scheme HOT 1
- limit size of select menu HOT 4
- Is this repo still being maintained? HOT 1
- Required validation for select HOT 2
- Reset form input validation HOT 4
- select with multiple attribute HOT 2
- Make tab hidden/visible on some criteria HOT 2
- MUI hacked? Github Repo has only a 0.10.2 tag and the website and NPM show a 0.10.3 version. HOT 1
- Support for react 17 HOT 5
- Bugs in negated `in` expressions
- [Autocomplete] How to implement? 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 mui.