挖坑缘由:
学习bootstrap > 改变其中的variable.less > 编译新的bootstrap.css
bootstrap本身是使用grunt来做自动化编译的,所以需要本地配置一下才可以编译出定制的bootstrap
grunt-cli
npm安装, grunt-cli只是起到调用grunt的作用,所以下面还要安装gruntgrunt package
npm安装
- 先修改variable.less中参数的值
- 终端中在下载的bootstrap文件夹下
grunt dist
既可编译出新的bootstrap.css