Comments (3)
+1
The compass gem in particular seems like a giant dependency to require for this.
from chosen-rails.
The only issue I can find with this is that the styles for chosen include reference to some sprite images. If the compiled CSS were to be used, the images would be statically named in the CSS. The asset pipeline is going to pre-process those images and give them a digested name, so the CSS won't find them.
Is that it? If so, any ideas on what we can do about that?
from chosen-rails.
@derekprior you are right.
The rails asset pipeline may change the path of other assets, like fonts, videos, audios, and images mostly.
The other reason is that coffeescript and sass will help us to customize the components of assets gem easier if the source code are separate into several files. I have to customize the coffeescript part for my need.
And compass is not all about these stuff.
Yes, chosen-rails is not using all these benefits. No extra dependencies are required if you use the default path of assets. But I prefer to keep these possibilities to happen if I only need to do small effort.
So, for people do not want the heavy dependencies, I suggest they add (minimized) js, css and images to their vender/assets of their rails project directly from Chosen. There still some ways to deal with the path of assets..
Or fork this project, or create a new the other one. It's all free under MIT license. :)
from chosen-rails.
Related Issues (20)
- DevTools failed to parse SourceMap: assets/bootstrap-chosen.css.map
- The latest update adds additional search icon when including chosen.scss HOT 1
- couldn't find file 'chosen-jquery' with type 'application/javascript'
- Sass is deprecated soon HOT 4
- SyntaxError: unexpected INDENT in vendor/assets/javascripts/chosen.proto.coffee
- Getting 'File to import not found or unreadable: chosen.' error while upgrading my app from Rails 5 to Rails 6. HOT 6
- Does not work with onchange: 'this.form.submit() HOT 3
- Populate Multi-Select on Edit HOT 2
- 40
- 20
- Sortable?
- With ActiveAdmin: couldn't find file 'chosen-jquery' with type 'application/javascript' HOT 2
- Updates gemspec to allow compass-rails 3.0.x HOT 1
- Add the missing "easy Rails" way to use Chosen HOT 1
- Remove references to compass in README HOT 1
- Update to latest chosen (1.7) HOT 5
- Multi select shouldn't close the dropdown on click
- sass-rails dependency HOT 7
- Partial string search (contains) HOT 2
- Unable to load chosen-sprite.png HOT 7
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 chosen-rails.