andri/fluidable

Modular features

isaactopo opened this issue · 4 comments

Hi Andri!
I was thinking it would be interesting to include features such as “fixed aspect ratio” as modules with @import because it is something that is not used in all projects and keep the total weight of the grid to the minimum.
It's only a thought, thanks for this great Grid!

andri commented

I'll look into this, but I'm not sure if thats a viable option with out moving those features into a separate repository. Many developers are using Bower for an example so the solution would have to work without changing the LESS file itself. We want people to be able to upgrade without reconfiguring.

Maybe we could move the config into a separate file similar to Twitter Bootstrap and then add this option somehow. If you have an idea how to achieve this I would love to hear it.

You can have 3 files all on the same repository(for example):
fluidable.less with:

@import 'grid.less';
@import 'aspect-ratio.less';

With that in production you can comment features if you don't use it:

@import 'grid.less';
/* @import 'aspect-ratio.less'; */

What do you think?

andri commented

Yeah its not as complicated as I thought at first. I'll do an update (Milestone 1.3) next month including this and some other small fixes.

Awesome, thanks!