PDA

View Full Version : Using Sencha Cmd, how can I NOT build MyApp-all.css?



xjscrafter
21 Feb 2014, 7:16 PM
We are using Sencha Cmd to build our ExtJS 4.2.1 app.

Using Sencha Cmd, how can I NOT build MyApp-all.css?

We are using a custom theme so we don't need the css file Sencha Cmd usually builds.

The app works great, but we need to stop the building of MyApp-all.css.

Thanks in advance.

evant
21 Feb 2014, 7:24 PM
Edit the sencha.cfg file, add this to the bottom:

skip.sass=1

xjscrafter
21 Feb 2014, 7:35 PM
And I don't want the <link> line in index.html that refers to the css file.

xjscrafter
22 Feb 2014, 8:53 AM
any insights?

xjscrafter
22 Feb 2014, 9:09 AM
It looks like that might cause Sencha Cmd to not build any sass files. I just don't want to build the ExtJS default sass, because the ext-all css is messing with my theme tree css. So I want to build my theme, but not the extjs css.

Should I delete the extjs sass files from my package/workspace.

xjscrafter
22 Feb 2014, 9:21 AM
I can do the following to delete the entire resources directory and remove the link tag, but that's overkill as far as I am concerned.


<target name="-after-page">
<fileset id="html.fileset"
dir="${build.dir}"
includes="${app.page.name}"/>


<replaceregexp replace="" flags="g"
match='\&lt;\s*link\s*rel="stylesheet"\s*href=".*-all.css"\/\&gt;'>
<fileset refid="html.fileset"/>
</replaceregexp>
</target>


<target name="-after-build">
<delete dir="${build.resources.dir}"/>
</target>