Update docs with correct CSS embed link (#858)

This commit is contained in:
dfalling 2019-08-12 17:22:04 -04:00 committed by Xintong Xia
parent 3e1fdb65dc
commit 17c5065d95

View File

@ -45,9 +45,11 @@ The current mapbox-gl release requires its stylesheet be included at all times.
You may add the stylesheet to the head of your page:
```html
<!-- index.html -->
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css' rel='stylesheet' />
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v<YOUR_MAPBOX_VERSION>/mapbox-gl.css' rel='stylesheet' />
```
Find out your mapbox version by running yarn list mapbox-gl or npm ls mapbox-gl.
Or embed it in your app by using - [browserify-css](https://www.npmjs.com/package/browserify-css)
with Browserify or - [css-loader](https://webpack.github.io/docs/stylesheets.html) with Webpack:
```js