Selaa lähdekoodia

Find nested deps. Stop using lazypack.

Herby Vojčík 5 vuotta sitten
vanhempi
commit
06362a1dd1
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      Gruntfile.js

+ 4 - 2
Gruntfile.js

@@ -67,7 +67,8 @@ module.exports = function (grunt) {
                         excludeIdeData: true,
                         excludeDebugContexts: true
                     },
-                    include: ['config', 'node_modules/requirejs/require', 'app', 'amber/lazypack', '__app__'],
+                    include: ['config', 'node_modules/requirejs/require', 'app'],
+                    findNestedDependencies: true,
                     optimize: "uglify2",
                     out: "the.js"
                 }
@@ -102,7 +103,8 @@ module.exports = function (grunt) {
                     pragmas: {
                         excludeIdeData: true
                     },
-                    include: ['app', 'amber/lazypack', '__app__'],
+                    include: ['app'],
+                    findNestedDependencies: true,
                     insertRequire: ['app'],
                     optimize: "none",
                     wrap: helpers.nodeWrapperWithShebang,