G
G
Georgy Khromchenko2014-02-14 13:49:50
Ruby on Rails
Georgy Khromchenko, 2014-02-14 13:49:50

Problems compiling scss in Rails for production?

There are a large number of scss files with layout. They are imported ( Dmitrijs Balcers ) into some main files, and they are already included in application.css.scss. This is done because there is a separate file with variables, and each piece of styles that describes the logically complete
In development mode (with dynamic compilation) everything is fine
. If I want to do rake assets:precomile, I suspect it just compiles everything, ignoring the order include, and compilation of the first alphabetically file is aborted due to undefined sass variables.
Is there any way to fix this behavior?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgy Khromchenko, 2014-02-15
@Mox

I figured it out - I used namespaces - user / * admin / *
At the same time, I still had application.css.scss in the root, in which there was a stupid require_tree, which included everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question