Update jQuery
Theme targets IE9+ allowing for using the newer/smaller version
This commit is contained in:
parent
8fc9bccda8
commit
38c2bdbfd8
5 changed files with 11 additions and 12 deletions
8
assets/js/main.min.js
vendored
8
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
5
assets/js/vendor/jquery/jquery-1.12.4.min.js
vendored
5
assets/js/vendor/jquery/jquery-1.12.4.min.js
vendored
File diff suppressed because one or more lines are too long
4
assets/js/vendor/jquery/jquery-3.2.1.min.js
vendored
Normal file
4
assets/js/vendor/jquery/jquery-3.2.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
title: "JavaScript"
|
||||
permalink: /docs/javascript/
|
||||
excerpt: "Instructions for customizing and building the theme's scripts."
|
||||
last_modified_at: 2017-09-12T12:25:08-04:00
|
||||
last_modified_at: 2017-09-12T12:41:33-04:00
|
||||
---
|
||||
|
||||
The theme's [`assets/js/main.min.js`] script is built from several vendor, jQuery plugins, and other scripts found in [`assets/js/`](https://github.com/mmistakes/minimal-mistakes/tree/master/assets/js).
|
||||
|
@ -18,7 +18,7 @@ minimal mistakes
|
|||
| | | └── jquery.smooth-scroll.min.js # make same-page links scroll smoothly
|
||||
| | ├── vendor
|
||||
| | | └── jquery
|
||||
| | | └── jquery-1.12.1.min.js
|
||||
| | | └── jquery-3.2.1.min.js
|
||||
| | ├── _main.js # jQuery plugin settings and other scripts
|
||||
| | └── main.min.js # concatenated and minified scripts
|
||||
```
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"uglify-js": "^2.6.1"
|
||||
},
|
||||
"scripts": {
|
||||
"uglify": "uglifyjs assets/js/vendor/jquery/jquery-1.12.4.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/_main.js -c -m -o assets/js/main.min.js",
|
||||
"uglify": "uglifyjs assets/js/vendor/jquery/jquery-3.2.1.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/_main.js -c -m -o assets/js/main.min.js",
|
||||
"add-banner": "node banner.js",
|
||||
"watch:js": "onchange \"assets/js/**/*.js\" -e \"assets/js/main.min.js\" -- npm run build:js",
|
||||
"build:js": "npm run uglify && npm run add-banner"
|
||||
|
|
Loading…
Reference in a new issue