The Sencha Cmd build process will automatically compile any SASS files in the app's build directory. In the standard build process, Sencha Cmd generates SASS files for the theme automatically and places them in the build folder, but you can use the Ant integration of Sencha Cmd to copy your own SASS files as well.
Suppose you have a bunch of SASS stylesheets stored in a sass/stylesheets
directory that you want to compile:
Project
-> app
-> build
-> production
-> testing
-> resources
-> sass
-> etc
-> example
-> src
-> var
-> stylesheets
-> build.xml
All you need to do is add the following target to your build.xml
file, which will copy any .scss
files in that folder to your build directory prior to the SASS compilation:
<target name="-before-sass">
<copy todir="${build.dir}">
<fileset dir="${app.dir}/sass/stylesheets">
<include name="*.scss"/>
</fileset>
</copy>
</target>
Then, after running sencha app build
, you should see a copy of your SASS files in build/production
and the compiled CSS under build/production/resources
.