Browse Source

Find nested deps. Stop using lazypack.

Herby Vojčík 5 years ago
parent
commit
3ff6be2e99
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Gruntfile.js

+ 4 - 2
Gruntfile.js

@@ -80,7 +80,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"
                 }
@@ -115,7 +116,8 @@ module.exports = function (grunt) {
                     pragmas: {
                         excludeIdeData: true
                     },
-                    include: ['app', 'amber/lazypack', '__app__'],
+                    include: ['app'],
+                    findNestedDependencies: true,
                     insertRequire: ['app'],
                     optimize: "none",
                     wrap: helpers.nodeWrapperWithShebang,