Procházet zdrojové kódy

no need to add "bundle" in the viewer's file name

Raanan Weber před 7 roky
rodič
revize
7a42664b0a

+ 1 - 0
Tools/Gulp/config.json

@@ -1667,6 +1667,7 @@
         "libraries": [
             {
                 "files": [],
+                "noBundleInName": true,
                 "output": "babylon.viewer.js",
                 "webpack": "../../Viewer/webpack.gulp.config.js",
                 "bundle": "true",

+ 1 - 1
Tools/Gulp/gulpfile.js

@@ -401,7 +401,7 @@ var buildExternalLibrary = function (library, settings, watch) {
         if (library.webpack) {
             return waitAll.on("end", function () {
                 return webpack(require(library.webpack))
-                    .pipe(rename(library.output.replace(".js", ".bundle.js")))
+                    .pipe(rename(library.output.replace(".js", library.noBundleInName ? '.js' : ".bundle.js")))
                     .pipe(addModuleExports(library.moduleDeclaration, false, false, true))
                     .pipe(uglify())
                     .pipe(optimisejs())

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 82 - 0
dist/preview release/viewer/babylon.viewer.js