Skip to content

Instantly share code, notes, and snippets.

@gmcerveny
Last active August 29, 2015 13:56
Show Gist options
  • Save gmcerveny/9177502 to your computer and use it in GitHub Desktop.
Save gmcerveny/9177502 to your computer and use it in GitHub Desktop.

Compiling a Customized Bootstrap with LESS

Problem 1 - Merging changes

Bootstrap inevitably changes so I need a way to update bootstrap source code.

It looks like the popular options are:

  • modify the source and merge any future changes in
  • add files such as custom-variables.less that override previous values

Problem 2 - Managing codebases

My custom bootstrap will inevitably be linked to a specific site.

I either:

  • branch a local check out of bootstrap and set a compile destination to my site.
  • add bootstrap as a git submodule to each site.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment