Browse Source

Add licensing info to the builds (#9547)

gero3 9 năm trước cách đây
mục cha
commit
084174b5f1
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      package.json
  2. 1 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 > build/three.min.js",
+    "build-min": "rollup -c && uglifyjs build/three.js -cm --comments /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"
   },
   },

+ 1 - 1
rollup.config.js

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