Browse Source

Update Gruntfile.js

文翼 11 years ago
parent
commit
f39f91f337
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Gruntfile.js

+ 3 - 2
Gruntfile.js

@@ -28,7 +28,8 @@ module.exports = function(grunt) {
                     expand: true,
                     expand: true,
                     cwd: 'src/locale',
                     cwd: 'src/locale',
                     src: '**/*.js',
                     src: '**/*.js',
-                    dest: 'dist/locale'
+                    dest: 'dist/locale',
+                    ext: '.min.js' // replace .js to .min.js
                 }]
                 }]
             }
             }
         },
         },
@@ -49,4 +50,4 @@ module.exports = function(grunt) {
     grunt.loadNpmTasks('grunt-contrib-cssmin');
     grunt.loadNpmTasks('grunt-contrib-cssmin');
 
 
     grunt.registerTask('default', ['clean', 'uglify', 'cssmin']);
     grunt.registerTask('default', ['clean', 'uglify', 'cssmin']);
-};
+};