Browse Source

Separate: task 'UGLIFY' and create module for 'load-config-grunt'

Arno Roldao Junior 8 năm trước cách đây
mục cha
commit
d0c2e69724
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  1. 15 0
      grunt-tasks/uglify.js

+ 15 - 0
grunt-tasks/uglify.js

@@ -0,0 +1,15 @@
+'use strict';
+
+module.exports = function (grunt) {
+  return {
+    options: {
+      mangle: true,
+      preserveComments: 'some'
+    },
+    my_target: {
+      files: {
+        'dist/js/app.min.js': ['dist/js/app.js']
+      }
+    }
+  };
+};