Skip to content
This repository was archived by the owner on Dec 14, 2020. It is now read-only.

Commit ed2e580

Browse files
authored
Update README.md (#21)
Document jQuery Slim vs jQuery in the installation guide.
1 parent 1e89f61 commit ed2e580

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ npm install && npm run dev
4343

4444
**Important**: Make sure you have a backup of your code. The presets update `package.json`, and replace views, CSS, and JavaScript.
4545

46+
### jQuery Slim
47+
48+
Bootstrap's [download](https://getbootstrap.com/docs/4.0/getting-started/download/) page includes jQuery slim. If you need `$.ajax`, effects, and deprecated methods, you can change the following line in `resources/assets/js/boostrap.js` to use the full jQuery installation:
49+
50+
```js
51+
window.$ = window.jQuery = require('jquery/dist/jquery.slim');
52+
```
53+
54+
With full jQuery:
55+
56+
```js
57+
// Full jQuery
58+
window.$ = window.jQuery = require('jquery');
59+
```
60+
4661
### Variables
4762

4863
The Bootstrap 4 presets include the same familiar `resources/assets/scss/_variables.scss` file, with some updated values to match Bootstrap 4 variable changes. This preset looks similar to the current `3.x` version that ships with Laravel, but isn't identical.

0 commit comments

Comments
 (0)