]> source.dussan.org Git - jquery.git/commitdiff
Build: Lint the minified jQuery file as well - a Gruntfile fix
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 27 Jan 2020 18:21:23 +0000 (19:21 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2020 18:21:23 +0000 (19:21 +0100)
While we have absolutely no style-related expectations to our minified file,
we do care that it's valid ES 5.1. This is now verified.

Fixes gh-3075
Ref gh-4594
Closes gh-4598

Gruntfile.js

index 51f8bc64333b4349360c44f1c940353a0f8d7268..0d79e37c0c0123948628377aa6eef4fa4dfa0aae 100644 (file)
@@ -85,7 +85,7 @@ module.exports = function( grunt ) {
                        // We have to explicitly declare "src" property otherwise "newer"
                        // task wouldn't work properly :/
                        dist: {
-                               src: "dist/jquery.js"
+                               src: [ "dist/jquery.js", "dist/jquery.min.js" ]
                        },
                        dev: {
                                src: [ "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js" ]