So everything is working fine locally, when I run ember serve, but when I build to production and post my app, the scss files don’t work. css seems to be there, but not working at all.
My initial thoughts were that it was a content security issue, but I have the following:
contentSecurityPolicy: {
‘default-src’:“‘self’“,
‘style-src’:”‘self’”,
‘font-src’: “‘self’ data: fonts.gstatic.com”,
//‘style-src’: “‘self’ ‘unsafe-inline’ http://fonts.googleapis.com”
}
I am at a total loss, because I am not getting any errors and if you view the css file at the URL above there appear to be css that’s ignored.
I fear this is one of those just needs a second pair of eyes things, that I am missing something simple because i have been looking at it too long.
Also, using ember-cli-sass, and tried adding the files manually in ember-cli-build.js, and that didn’t seem to help, but my sassoptions look like the following if this is helpful:
Check your font-face declaration, it looks like you have an unclosed {} block that when concatenated with the other scss files is preventing them from being applied.
The tweedle font is also missing from the assets directory, @jer1my the fonts should be placed in the ember-app/public/assets/fonts directory and change the @font-face rule to load from url('../assets/fonts/tweedle.eot') etc.
Thanks so much everyone… I was finally able to get it to work by doing a build without the environment definition, I obviously still have a lot to learn about how that environment.js file functions.
And, as I suspected, I had been looking at it too long yesterday and was missing some simple things as well.
I sent you a PR with the exact changes but the problem was caused by the combination of production env minification and the import order of the pod-styles.scss file.
The component styles.scss files can use the $variables and @mixins defined in files imported before pod-styles.scss, they should not be imported in each component/styles.scss file.
I knew it was something simple I wasn’t catching, since it was running fine until I did the production build. I wish there was better documentation available for ember and ember-cli… As a noob ember developer I am spending a huge amount of time digging through the old interwebs just trying to find the info I need to understand how things work together. I probably would have given up on ember by now if I weren’t too tenacious for my own good LOL ;).