Excluding Ext from compilation file

Excluding Ext from compilation file

I want to generate a js only for my MVC app. In the deploy file I will be able to include the Ext library and my compiled files. I tried the exclude param but it did not work, my all-classes.js contains also the Ext library.