Grunt Uglify to compress your javascript for production deployment.

 

Install


 

npm install grunt-contrib-uglify

 

Example


 

/**
 * Created by Answer1215 on 11/15/2014.
 */
module.exports = function(grunt){

    grunt.initConfig({
        uglify:{
            dist:{
                files:{
                    "dist/app.min.js": "app/**/*.js"
                }
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
}

 

Any js files in app folder will be output as app.min.js in dist folder.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-05-03
  • 2021-05-25
  • 2021-05-31
  • 2022-02-02
猜你喜欢
  • 2021-09-17
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-08-31
相关资源
相似解决方案