浏览代码

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

Raanan Weber 7 年之前
父节点
当前提交
7a42664b0a
共有 3 个文件被更改,包括 84 次插入1 次删除
  1. 1 0
      Tools/Gulp/config.json
  2. 1 1
      Tools/Gulp/gulpfile.js
  3. 82 0
      dist/preview release/viewer/babylon.viewer.js

+ 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())

文件差异内容过多而无法显示
+ 82 - 0
dist/preview release/viewer/babylon.viewer.js