Document scripts field

main
Elbert Alias 3 years ago
parent fe4092b74b
commit c8f642307b

@ -99,6 +99,7 @@ Patterns (regular expressions) are kept in [`src/technologies/`](https://github.
"generator": "(?:Example|Another Example)" "generator": "(?:Example|Another Example)"
}, },
"scriptSrc": "example-([0-9.]+)\\.js\\;confidence:50\\;version:\\1", "scriptSrc": "example-([0-9.]+)\\.js\\;confidence:50\\;version:\\1",
"scripts": "function webpackJsonpCallback\\(data\\) {",
"url": "example\\.com", "url": "example\\.com",
"xhr": "example\\.com", "xhr": "example\\.com",
"oss": true, "oss": true,
@ -386,6 +387,16 @@ Plus any of:
</td> </td>
<td><code>"jquery\\.js"</code></td> <td><code>"jquery\\.js"</code></td>
</tr> </tr>
<tr>
<td><code>scripts</code></td>
<td>String | Array</td>
<td>
JavaScript source code. Inspects inline and external scripts. For performance reasons, avoid
<code>scripts</code> where possible and use
<code>js</code> instead.
</td>
<td><code>"function webpackJsonpCallback\\(data\\) {"</code></td>
</tr>
</tbody> </tbody>
</table> </table>