Open BradleyCai opened 8 years ago
Instead of separate .min.js
files we should merge them all into one .min.js
file.
We should also be careful about licenses and figure out a way to include them.
We could have each file minified to a single line, and then have a one line comment above explaining the lincese.
For instance:
/* abc - example.com/abc - MIT License */
if(a==b)c(a+b); ...
/* def - example.org/def - MIT License */
func a(b,d,e,f){ ...
We should minify our js since it's growing bigger everyday.
We'll add a
.min.js
file for each of our regular.js
files and then run the.min.js
files in the website instead of the.js
ones like we currently do.To do this we should write a script to minify our js every time we modify or add js.