title: Sencha Cmd 4: minify the javascript code of ExtJS and Sencha Touch
body: <p>I have developed two applications using ExtJS and Sencha Touch. I would like to minify the JavaScript code and create a single js file for all classes used in the applications (separately, I am trying to minify the code and not to build. My task doesn't depend on ExtJS or Sencha Touch).</p>
  
  <p>I used sencha cmd verions 4 to do. It am facing some issues with both ExtJS and Sencha Touch application.</p>
  
  <p>In ExtJS, It is not taking all the classes for minifying and creating a single js file. It is taking the classes which are mentioned in required method. If I want to minify the all the javascript classes, I will have to include all the classes in require method in app.js. This is not fair. </p>
  
  <p>I used the following command. It is not giving any error</p>
  
  <pre><code>sencha -sdk &lt;path-to-sdk&gt; compile --classpath=&lt;classpath&gt; page -in index.html -out build/index.html -yui
  </code></pre>
  
  <p>In Sencha Touch, It is targetting for mobile environment (eg: Andriod, iPhone, windows, etc.). I am trying to compile and minify and not to package application.</p>
  
  <p>Please let me know how to do.</p>