Gruntfile.js 555 B

1234567891011121314151617181920212223242526
  1. module.exports = function(grunt) {
  2. // Project configuration.
  3. grunt.initConfig({
  4. pkg: grunt.file.readJSON('package.json'),
  5. uglify: {
  6. options: {
  7. sourceMap: true,
  8. sourceMapIncludeSources: true
  9. },
  10. build: {
  11. files: [{
  12. src: 'src/jquery-captcha.js',
  13. dest: 'dist/jquery-captcha.min.js'
  14. }]
  15. }
  16. }
  17. });
  18. // Load the plugin that provides the "uglify" task.
  19. grunt.loadNpmTasks('grunt-contrib-uglify');
  20. // Default task(s).
  21. grunt.registerTask('default', ['uglify']);
  22. };