Make small grammar changes
This commit is contained in:
parent
5094a4092a
commit
cc18679227
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
title: "JavaScript"
|
||||
permalink: /docs/javascript/
|
||||
excerpt: "Instructions for customizing and building the theme's scripts."
|
||||
last_modified_at: 2019-05-02T08:55:27-04:00
|
||||
last_modified_at: 2021-07-23T09:33:35-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).
|
||||
|
@ -66,14 +66,15 @@ To get started:
|
|||
If all goes well, running `npm run build:js` will compress/concatenate `_main.js` and all plugin scripts into `main.min.js`.
|
||||
|
||||
## Debugging
|
||||
The minified Javascript is harder to debug in the browser than the raw source. To stop the minification and just bundle all the Javascript as-is; open up `package.json` and edit the value `scripts.uglify` from:
|
||||
|
||||
The minified JavaScript is harder to debug in the browser than the raw source. To stop the minification and bundle all the JavaScript as-is --- open up `package.json` and edit the value `scripts.uglify` from:
|
||||
|
||||
```json
|
||||
"scripts": {
|
||||
"uglify": "uglifyjs [...] -c -m -o assets/js/main.min.js",
|
||||
```
|
||||
|
||||
to simply concatenating the files:
|
||||
To the following:
|
||||
|
||||
```json
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue