Coder Social home page Coder Social logo

Comments (3)

jmcnevin avatar jmcnevin commented on July 28, 2024

+1

The compass gem in particular seems like a giant dependency to require for this.

from chosen-rails.

derekprior avatar derekprior commented on July 28, 2024

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.

tsechingho avatar tsechingho commented on July 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.