How to create many individual uglify tasks in grunt?

278
December 15, 2017, at 10:19 AM

when I try to create many uglify tasks I get errors. I have to comment and uncomment one task in order to get one task working correctly. Hope someone can help me. I need two sperate minified .js files created using this plugin but I can't figure it out. if it's possible to create both tasks in one task command that would create two sperate minified .js files like below that would be also great. Looking forward to ideas, please.

module.exports = function(grunt){
grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    uglify:{
        t1:{
            files:{
                'build/scripts1.js' : ['abc.js', 'xc.js']
            }
        }
    },
    uglify:{
        t2:{
            files:{
                'build/scripts2.js' : ['123.js', 63a5.js]
            }
        }
    }
    });
};
Rent Charter Buses Company
READ ALSO
What is the required format for an Ajax GET response?

What is the required format for an Ajax GET response?

I am having a major problem trying to add an element to a response stream sent by an Arduino application in reply to an AJAX requestI have a message getting through successfully, but when I add an extra component to it, the message is not read

230
CURL PHP Automatic Login

CURL PHP Automatic Login

Im trying to make an application that do a login via CURL, but i cant make this application to work, with the cookie saved after the loginAparently i can save the cookie, but can use it

277
wrong php version in visual studio code

wrong php version in visual studio code

I installed Visual Code Studio w/ESLintIt won't operate because it is reporting "Language server needs at least PHP 7 installed

694