Answers for "Grunt--project configuration object--uglify"

0

Grunt--project configuration object--uglify

// Project configuration.
grunt.initConfig({
  pkg: grunt.file.readJSON('package.json'),
  uglify: {
    options: {
      banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
    },
    build: {
      src: 'src/<%= pkg.name %>.js',
      dest: 'build/<%= pkg.name %>.min.js'
    }
  }
});
Posted by: Guest on July-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language