javascript - Why is Grunt ignoring jQuery when Uglifying? -


i can't figure out why jquery being ignored when running grunt task. here looks like:

module.exports = function (grunt) {     // configuration     grunt.initconfig({         pkg: grunt.file.readjson('package.json'),         // concat         concat: {             js: {                 src: [                     'js/vendor/jquery.js',                     'js/app/graph.js',                 ],                 dest: 'app/build/js/app.js'             }         },         // uglify         uglify: {             options: {                 preservecomments: false             },             my_target: {                 files: {                     'app/build/js/app.min.js': [                             'app/build/js/app.js'                         ]                 }             }         }); }; 

when check app.js, jquery part of it, not in app.min.js. suspect wrong uglify part.

github.com/gruntjs/grunt-contrib-clean not strictly necessary, jquery should included if that's you've got. test on included site sure it's not hiding somewhere in uglified code.


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

javascript - Using jquery append to add option values into a select element not working -