8000 Merge pull request #18249 from twbs/v4-ap · liuwenye2010/bootstrap@65b1d57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65b1d57

Browse files
committed
Merge pull request twbs#18249 from twbs/v4-ap
Autoprefixer callout in Build tools docs
2 parents 7d9ddb8 + 37c2681 commit 65b1d57

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/getting-started/build-tools.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Our Gruntfile includes the following commands and tasks:
2727

2828
| Task | Description |
2929
| --- | --- |
30-
| `grunt` | Run `grunt` to run tests locally and compile the CSS and JavaScript into `/dist`. **Uses [Sass](http://sass-lang.com/) and [UglifyJS](http://lisperator.net/uglifyjs/).** |
31-
| `grunt dist` | `grunt dist` creates the `/dist` directory with compiled files. **Uses [Sass](http://sass-lang.com/) and [UglifyJS](http://lisperator.net/uglifyjs/).** |
30+
| `grunt` | Run `grunt` to run tests locally and compile the CSS and JavaScript into `/dist`. **Uses [Sass](http://sass-lang.com/), [Autoprefixer][autoprefixer], and [UglifyJS](http://lisperator.net/uglifyjs/).** |
31+
| `grunt dist` | `grunt dist` creates the `/dist` directory with compiled files. **Uses [Sass](http://sass-lang.com/), [Autoprefixer][autoprefixer], and [UglifyJS](http://lisperator.net/uglifyjs/).** |
3232
| `grunt test` | Runs [scss-lint](https://github.com/brigade/scss-lint), [ESLint](http://eslint.org/) and [QUnit](http://qunitjs.com/) tests headlessly in [PhantomJS](http://phantomjs.org/) (used for CI). |
3333
| `grunt docs` | Builds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via `jekyll serve`. |
3434
| `grunt watch` | This is a convenience method for watching just Sass files and automatically building them whenever you save. |
@@ -42,10 +42,10 @@ Bootstrap will be compiled with [libsass][libsass] by default, but you can opt i
4242

4343
For example, run `TWBS_SASS=sass grunt` to test and build Bootstrap with Ruby Sass.
4444

45-
[ruby-sass]: https://github.com/sass/sass
46-
[grunt-contrib-sass]: https://github.com/gruntjs/grunt-contrib-sass
47-
[libsass]: https://github.com/sass/libsass
48-
[grunt-sass]: https://github.com/sindresorhus/grunt-sass
45+
## Autoprefixer
46+
47+
Bootstrap uses [Autoprefixer][autoprefixer] (included in our Gruntfile and build process) to automatically add vendor prefixes to some CSS properties at build time. Doing so saves us time and code by allowing us to write key parts of our CSS a single time while eliminating the need for vendor mixins like those found in v3.
48+
4949

5050
## Local documentation
5151

@@ -60,3 +60,9 @@ Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com
6060
## Troubleshooting
6161

6262
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun `npm install`.
63+
64+
[ruby-sass]: https://github.com/sass/sass
65+
[grunt-contrib-sass]: https://github.com/gruntjs/grunt-contrib-sass
66+
[libsass]: https://github.com/sass/libsass
67+
[grunt-sass]: https://github.com/sindresorhus/grunt-sass
68+
[autoprefixer]: https://github.com/postcss/autoprefixer

0 commit comments

Comments
 (0)
0