Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save democ/9905597 to your computer and use it in GitHub Desktop.
Save democ/9905597 to your computer and use it in GitHub Desktop.

挖坑缘由:

学习bootstrap > 改变其中的variable.less > 编译新的bootstrap.css

bootstrap本身是使用grunt来做自动化编译的,所以需要本地配置一下才可以编译出定制的bootstrap

依赖

  • grunt-cli npm安装, grunt-cli只是起到调用grunt的作用,所以下面还要安装grunt
  • grunt package npm安装

使用grunt编译修改后的bootstrap.css

  1. 先修改variable.less中参数的值
  2. 终端中在下载的bootstrap文件夹下 grunt dist既可编译出新的bootstrap.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment