beryllium / UpThing

An intro to Composer and Silex that can accept image uploads and generate thumbnails
MIT License
9 stars 2 forks source link

CSS glitch #6

Open beryllium opened 11 years ago

beryllium commented 11 years ago

Putting it here so I don't forget, but the way the CSS and JS components are handled in this project is very clumsy. Currently I'm solving this by manually creating symbolic links to ../components and ../vendor/twbs/bootstrap in web/, but that's very lame.

Solution comes via the blog of @cordoval: Make No JS Mess in Your Symfony2 Project: Use component

So I would just have to switch the twbs/bootstrap entry in composer.json to "components/bootstrap": "3.*", and then add this section to install the components to web/components/:

"config": {
    "component-dir": "web/components"
},

... and then that will be fixed & much easier to install.

simensen commented 11 years ago

Big :+1: on this. I've been doing this for a few Sculpin sites and am pretty happy with the results.