0

I have a scenario as follows. I've built a "themed" site using the asset pipeline. There are a variety of manifests:

application.scss
application_light.scss
application_dark.scss

When I run rake assets:precompile, only application.scss gets compiled and created as application.css.

I have no trouble with these assets in development, it is only in production pre-compilation that they fail.

I have tried:

config.assets.precompile += %w( application_light.scss )

This also does not work, it simply does not precompile anything past application.scss

4

1 回答 1

0

我在这里找到了答案:

使用 Rails 3.1 的资产管道预编译 .scss 清单文件

原来我只需要将预编译从 scss 更改为 css。

于 2012-08-23T14:17:31.063 回答