浏览代码

Clean config.json

sebastien 6 年之前
父节点
当前提交
778d47e604

+ 2 - 33
Tools/DevLoader/BabylonLoader.js

@@ -146,39 +146,8 @@ var BABYLONDEVTOOLS;
             }
 
             if (!useDist) {
-                if (library.useOutputForDebugging) {
-                    var tempDirectory = '/.temp' + module.build.distOutputDirectory;
-                    this.loadScript(babylonJSPath + tempDirectory + library.output);
-                } else {
-                    var i = 0;
-                    for (; i < library.files.length; i++) {
-                        var file = library.files[i];
-                        if (file.indexOf('lib.d.ts') > 0) {
-                            continue;
-                        }
-                        // Manage exclude files.
-                        if (library.excludeFromLoader && library.excludeFromLoader.indexOf(file) > -1) {
-                            continue;
-                        }
-
-                        file = file.replace('.ts', '.js');
-                        file = file.replace('../', '');
-                        file = babylonJSPath + '/' + file;
-                        this.loadScript(file);
-                    }
-
-                    if (library.shaderFiles && library.shaderFiles.length > 0) {
-                        var shaderFile = library.shaderFiles[0];
-                        var endDirectoryIndex = shaderFile.lastIndexOf('/');
-                        shaderFile = shaderFile.substring(0, endDirectoryIndex + 1);
-                        shaderFile += library.output.replace('.js', '.js.fx');
-                        this.loadScript(shaderFile);
-                        if (library.shadersIncludeFiles) {
-                            var includeShaderFile = shaderFile.replace('.js.fx', '.js.include.fx');
-                            this.loadScript(includeShaderFile);
-                        }
-                    }
-                }
+                var tempDirectory = '/.temp' + module.build.distOutputDirectory;
+                this.loadScript(babylonJSPath + tempDirectory + library.output);
             }
             else if (min) {
                 if (library.webpack) {

+ 13 - 257
Tools/Gulp/config.json

@@ -1507,164 +1507,82 @@
     "materialsLibrary": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylonjs.materials.min.js",
-                "webpack": "../../../materialsLibrary/webpack.config.js",
-                "entry": "./src/legacy.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "./src/legacy.ts"
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.cellMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.cell.config.js",
                 "entry": "./legacy/legacy-cell.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.customMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.custom.config.js",
                 "entry": "./legacy/legacy-custom.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.fireMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.fire.config.js",
                 "entry": "./legacy/legacy-fire.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.furMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.fur.config.js",
                 "entry": "./legacy/legacy-fur.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.gradientMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.gradient.config.js",
                 "entry": "./legacy/legacy-gradient.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.gridMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.grid.config.js",
                 "entry": "./legacy/legacy-grid.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.lavaMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.lava.config.js",
                 "entry": "./legacy/legacy-lava.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.mixMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.mix.config.js",
                 "entry": "./legacy/legacy-mix.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.normalMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.normal.config.js",
                 "entry": "./legacy/legacy-normal.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.shadowOnlyMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.shadowOnly.config.js",
                 "entry": "./legacy/legacy-shadowOnly.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.simpleMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.simple.config.js",
                 "entry": "./legacy/legacy-simple.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.skyMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.sky.config.js",
                 "entry": "./legacy/legacy-sky.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.terrainMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.terrain.config.js",
                 "entry": "./legacy/legacy-terrain.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.triPlanarMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.triPlanar.config.js",
                 "entry": "./legacy/legacy-triPlanar.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "noBundleInName": true,
                 "output": "babylon.waterMaterial.min.js",
-                "webpack": "../../../materialsLibrary/legacy/webpack.water.config.js",
                 "entry": "./legacy/legacy-water.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             }
         ],
@@ -1695,36 +1613,17 @@
     "postProcessesLibrary": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylonjs.postProcess.min.js",
-                "webpack": "../../../postProcessLibrary/webpack.config.js",
-                "entry": "./src/legacy.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "./src/legacy.ts"
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.asciiArtPostProcess.min.js",
-                "webpack": "../../../postProcessLibrary/legacy/webpack.asciiArt.config.js",
                 "entry": "./legacy/legacy-asciiArt.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.digitalRainPostProcess.min.js",
-                "webpack": "../../../postProcessLibrary/legacy/webpack.digitalRain.config.js",
                 "entry": "./legacy/legacy-digitalRain.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             }
         ],
@@ -1755,124 +1654,57 @@
     "proceduralTexturesLibrary": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylonjs.proceduralTextures.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
-                "entry": "./src/legacy.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "./src/legacy.ts"
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.brickProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-brick.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.cloudProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-cloud.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.fireProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-fire.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.grassProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-grass.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.marbleProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-marble.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.normalMapProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-normalMap.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.perlinNoiseProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-perlinNoise.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.roadProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-road.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.starfieldProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-starfield.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.woodProceduralTexture.min.js",
-                "webpack": "../../../proceduralTexturesLibrary/webpack.config.js",
                 "entry": "./legacy/legacy-wood.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             }
         ],
@@ -1903,69 +1735,32 @@
     "loaders": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylonjs.loaders.min.js",
-                "webpack": "../../../loaders/webpack.config.js",
-                "entry": "./src/legacy.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "./src/legacy.ts"
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.objFileLoader.min.js",
-                "webpack": "../../../loaders/webpack.config.js",
                 "entry": "./legacy/legacy-objFileLoader.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.stlFileLoader.min.js",
-                "webpack": "../../../loaders/webpack.config.js",
                 "entry": "./legacy/legacy-stlFileLoader.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.glTF1FileLoader.min.js",
-                "webpack": "../../../loaders/webpack.config.js",
                 "entry": "./legacy/legacy-glTF1FileLoader.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.glTF2FileLoader.min.js",
-                "webpack": "../../../loaders/webpack.config.js",
                 "entry": "./legacy/legacy-glTF2FileLoader.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.glTFFileLoader.min.js",
-                "webpack": "../../../loaders/webpack.config.js",
                 "entry": "./legacy/legacy-glTFFileLoader.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             }
         ],
@@ -1997,36 +1792,17 @@
     "serializers": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylonjs.serializers.min.js",
-                "webpack": "../../../serializers/webpack.config.js",
-                "entry": "./src/legacy.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "./src/legacy.ts"
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.objSerializer.min.js",
-                "webpack": "../../../serializers/webpack.config.js",
                 "entry": "./legacy/legacy-objSerializer.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             },
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.glTF2Serializer.min.js",
-                "webpack": "../../../serializers/webpack.config.js",
                 "entry": "./legacy/legacy-glTF2Serializer.ts",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
                 "preventLoadLibrary": true
             }
         ],
@@ -2058,17 +1834,12 @@
     "gui": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.gui.min.js",
-                "webpack": "../../../gui/webpack.config.js",
-                "bundle": "true",
-                "babylonIncluded": false,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "././src/legacy.ts"
             }
         ],
         "build": {
+            "webpack": "../../../gui/webpack.config.js",
             "srcOutputDirectory": "../../gui/src/",
             "distOutputDirectory": "/gui/",
             "dtsBundle": {
@@ -2100,17 +1871,13 @@
     "inspector": {
         "libraries": [
             {
-                "files": [],
-                "sassFiles": [],
                 "output": "babylon.inspector.bundle.js",
-                "webpack": "../../../inspector/webpack.config.js",
-                "bundle": "true",
-                "extendsRoot": true,
-                "useOutputForDebugging": true,
-                "isMain": true
+                "entry": "././src/legacy.ts",
+                "extendsRoot": true
             }
         ],
         "build": {
+            "webpack": "../../../inspector/webpack.config.js",
             "srcOutputDirectory": "../../inspector/src/",
             "distOutputDirectory": "/inspector/",
             "dtsBundle": {
@@ -2137,21 +1904,16 @@
     "viewer": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.viewer.js",
-                "webpack": "../../../Viewer/webpack.gulp.config.js",
-                "bundle": "true",
                 "moduleDeclaration": {
                     "name": "BabylonViewer",
                     "module": "babylonjs-viewer"
                 },
-                "babylonIncluded": true,
-                "noWatch": true,
                 "preventLoadLibrary": true
             }
         ],
         "build": {
+            "webpack": "../../../Viewer/webpack.gulp.config.js",
             "srcDirectory": "../../Viewer/src/",
             "srcOutputDirectory": "../../Viewer/",
             "distOutputDirectory": "/viewer/",
@@ -2211,22 +1973,16 @@
     "viewer-assets": {
         "libraries": [
             {
-                "files": [],
-                "noBundleInName": true,
                 "output": "babylon.viewer.assets.js",
-                "webpack": "../../../Viewer/webpack.assets.config.js",
-                "bundle": "true",
                 "moduleDeclaration": {
                     "name": "BabylonViewerAssets",
                     "module": "babylonjs-viewer-assets"
                 },
-                "babylonIncluded": true,
-                "noWatch": true,
-                "preventLoadLibrary": true,
-                "isMain": true
+                "preventLoadLibrary": true
             }
         ],
         "build": {
+            "webpack": "../../../Viewer/webpack.assets.config.js",
             "srcDirectory": "../../Viewer/src/",
             "srcOutputDirectory": "../../Viewer/",
             "distOutputDirectory": "/viewer/",

+ 8 - 12
Tools/Gulp/tasks/gulpTasks-libraries.js

@@ -21,17 +21,12 @@ var buildExternalLibrary = function(library, settings) {
     const sequence = [];
     var outputDirectory = config.build.outputDirectory + settings.build.distOutputDirectory;
 
-    var wpConfig;
-    if (library.entry) {
-        wpConfig = require(settings.build.webpack);
-        wpConfig.entry = {
-            'main': path.resolve(wpConfig.context, library.entry),
-        };
-        wpConfig.output.filename = library.output;
-    }
-    else {
-        wpConfig = require(library.webpack);
-    }
+    // Webpack Config.
+    var wpConfig = require(settings.build.webpack);
+    wpConfig.entry = {
+        'main': path.resolve(wpConfig.context, library.entry),
+    };
+    wpConfig.output.filename = library.output;
 
     // Generate minified file.
     let wpBuildMin = webpackStream(wpConfig, webpack);
@@ -45,7 +40,8 @@ var buildExternalLibrary = function(library, settings) {
     let buildEventMax = wpBuildMax.pipe(gulp.dest(outputDirectory));
     sequence.push(buildEventMax);
 
-    if (library.isMain) {
+    // TODO. Generate all d.ts
+    if (!library.preventLoadLibrary) {
         buildEventMin.on("end", function() {
             dtsBundle.bundle(settings.build.dtsBundle);
 

+ 4 - 6
Tools/Gulp/tasks/gulpTasks-viewerLibraries.js

@@ -23,7 +23,7 @@ var buildViewerLibrary = function(library, settings) {
     var outputDirectory = config.build.outputDirectory + settings.build.distOutputDirectory;
 
     settings.build.outputs.forEach(out => {
-        let wpConfig = require(library.webpack);
+        let wpConfig = require(settings.build.webpack);
         if (!out.minified) {
             wpConfig.mode = "development";
         }
@@ -58,15 +58,13 @@ var buildViewerLibrary = function(library, settings) {
                 if (isJs) this.push(file);
                 cb();
             }))
-            .pipe(addModuleExports(library.moduleDeclaration, { subModule: false, extendsRoot: false, externalUsingBabylon: true, noBabylonInit: library.babylonIncluded }));
+            .pipe(addModuleExports(library.moduleDeclaration, { subModule: false, extendsRoot: false, externalUsingBabylon: true, noBabylonInit: true }));
 
         function processDestination(dest) {
             var outputDirectory = config.build.outputDirectory + dest.outputDirectory;
-            build = build
-                .pipe(rename(dest.filename.replace(".js", library.noBundleInName ? '.js' : ".bundle.js")))
-                .pipe(gulp.dest(outputDirectory));
+            build = build.pipe(gulp.dest(outputDirectory));
 
-            if (library.babylonIncluded && dest.addBabylonDeclaration) {
+            if (dest.addBabylonDeclaration) {
                 // include the babylon declaration
                 if (dest.addBabylonDeclaration === true) {
                     dest.addBabylonDeclaration = [config.build.declarationFilename];

+ 17 - 12
Tools/Gulp/tasks/gulpTasks-watch.js

@@ -28,20 +28,25 @@ gulp.task("watch", gulp.series("srcTscWatch", function startWatch() {
 
     config.modules.map(function(module) {
         if (config[module].build && config[module].build.webpack) {
-            var library = config[module].libraries[0];
-            if (library.noWatch) return;
-            var outputDirectory = config.build.tempDirectory + config[module].build.distOutputDirectory;
-            let wpconfig = require("../" + config[module].build.webpack);
-            wpconfig.watch = true;
-            // dev mode and absolute path sourcemaps for debugging
-            wpconfig.mode = "development";
-            wpconfig.output.devtoolModuleFilenameTemplate = "[absolute-resource-path]";
-            //config.stats = "minimal";
-            tasks.push(webpackStream(wpconfig, webpack).pipe(gulp.dest(outputDirectory)))
+            for (var index = 0; index < config[module].libraries.length; index++) {
+                var library = config[module].libraries[index];
+                if (library.preventLoadLibrary) { 
+                    continue;
+                }
+
+                let wpconfig = require(config[module].build.webpack);
+                // watch on.
+                wpconfig.watch = true;
+                // dev mode and absolute path sourcemaps for debugging
+                wpconfig.mode = "development";
+                wpconfig.output.devtoolModuleFilenameTemplate = "[absolute-resource-path]";
+                //config.stats = "minimal";
+
+                var outputDirectory = config.build.tempDirectory + config[module].build.distOutputDirectory;
+                tasks.push(webpackStream(wpconfig, webpack).pipe(gulp.dest(outputDirectory)))
+            }
         }
     });
 
-    console.log(tasks.length);
-
     return Promise.resolve();
 }));