Przeglądaj źródła

Use --preamble in uglifyjs command. See #9547

Mr.doob 9 lat temu
rodzic
commit
b59d9a56d2
2 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 1
      package.json
  2. 0 1
      rollup.config.js

+ 1 - 1
package.json

@@ -21,7 +21,7 @@
   },
   },
   "scripts": {
   "scripts": {
     "build": "rollup -c",
     "build": "rollup -c",
-    "build-min": "rollup -c && uglifyjs build/three.js -cm --comments /threejs.org\\\/license/ > build/three.min.js",
+    "build-min": "rollup -c && uglifyjs build/three.js -cm --preamble \"\/\/ threejs.org\/license\" > build/three.min.js",
     "dev": "rollup -c -w",
     "dev": "rollup -c -w",
     "test": "echo \"Error: no test specified\" && exit 1"
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   },

+ 0 - 1
rollup.config.js

@@ -30,6 +30,5 @@ export default {
 	plugins: [
 	plugins: [
 		glsl()
 		glsl()
 	],
 	],
-	banner: '// threejs.org/license \n',
 	outro: outro
 	outro: outro
 };
 };