Open fsauter opened 8 years ago
Hey @fsauter!
Reading in the bower.json specs, main
can contain "one file per filetype" – which sounds like your problem is easily solved by adding back select2-bootstrap.css
(or its minified version) to bower.json
.
Instead of going the trial-and-error route and rushing another release, I would like to ask @kalidema (who suggested the change that resulted in the problem you are having) and @kevin-brown (who handles all the hard work over at Select2 and probably knows why Select2s bower.json does not contain any compiled CSS) for advice, first.
For now, allow me one question: How do things work for you in terms of Select2, its bower.json
and rails-assets?
There's a relevant rails-assets ticket to all of this: https://github.com/tenex/rails-assets/issues/367
@kevin-brown (who handles all the hard work over at Select2 and probably knows why Select2s bower.json does not contain any compiled CSS) for advice, first.
The answer for why we do it lies in the following pull request: https://github.com/select2/select2/pull/3350
In short: There is/was a change to the Bower spec, and now they prefer the original source files over the pre-built distribution files.
Hi all,
since beta8 I can't use this repo with rails-assets anymore (problem relates to the following commit: https://github.com/select2/select2-bootstrap-theme/commit/494123dbaa0d08311fc908ba1d0a04da6f81c168)
Rails assets uses bower's main property to decide which files it bundles.. in result of the mentioned commit I don't have the compiled files available anymore. You might want to consider to add the dist files to bower main property again? So long I will use beta7.
Cheers Florian