tinymce build script to compress all js files

三世轮回 提交于 2019-12-13 02:13:06

问题


I am looking for a way to compress all tinymce js files into one single file.

I would like to use ant, yui-compressor and a build script. There seems to exist something like this already: https://github.com/tinymce/tinymce

But i have not been able to make it work. Can anybody with experience give me some assistance?


回答1:


Solution from the tinymce forum (Spocke):

  1. Install Java.
  2. Install ant
  3. Add ant to environment variable "path"
  4. Open a console
  5. cd to the tinymce dir and type "ant build_full"



回答2:


We're using tinymce in our commercial grade productions. At first, we used their default .NET compressor. But, we've found it's too buggy for a real production. Then we made a simple IHttpHandler to concatenate given JavaScript files and JavaScript snippets. The handler also take advantages of caching to reduce response time. There should be some third party solutions if you don't want to waste your time.



来源:https://stackoverflow.com/questions/8787744/tinymce-build-script-to-compress-all-js-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!