0

I've had to go back to an old version of compass: 0.12.7
Otherwise it fails on missing files. Before installing I removed the existing compass installation.

It correctly compiles my css file when I make a change to the scss file.

But when I ask sencha to make a production build with "sencha app build production" the css file in my project gets replaced with a different one.

The file probably gets overwritten at the following line during the build process:
[INF] executing compass using system installed ruby runtime overwrite ../css/app.css

So it claims to use my installed version of compass.

What am I doing wrong here?

MrFox
  • 4,852
  • 7
  • 45
  • 81

1 Answers1

1

You have the same problem i have met. Sencha touch 2.4.0 SASS compile error

You should not write your custom css in app.css.
IMHO, there are two ways to add custom css.
1. app.json
2. @import your custom scss file in app.scss in resource/sass/app.scss and then use sencha ant sass to compile css file.

Community
  • 1
  • 1
icese7en
  • 142
  • 1
  • 10
  • Thanks I was indeed importing a css file instead of an scss file. But importing the scss file causes more errors because it can't find the font parts. Btw I'm trying to use font-awesome here. – MrFox Oct 10 '14 at 13:33
  • so you need to add this css file in `app.json` in first means – icese7en Oct 10 '14 at 13:43
  • Yes I tried including the css file, in the css block of my app.json file. Does not help, does not matter which I do first. – MrFox Oct 10 '14 at 14:19
  • apparently I also needed to include the font awesome resource files. – MrFox Oct 10 '14 at 23:42