Skip to content

Precompilation issues #1

@christoffer

Description

@christoffer

CSS Splitter works like a charm for me in development, but I can't get it to work at all in production with asset pre-compilation.

When running rake assets:precompile I end up with a file named application-web_split2.css-<fingerprint>.split2 Instead of the expected application-web_split2.css that I get when running in development.

It would seem that the .split2 is not run through the css_splitter template handler, because it contains the full content of the original css file. I guess that would also explain why the file ending is still .split2 in the asset folder.

# precompilation settings in production.rb
assets_configuration.precompile += %w{ <other files> application-web.css application-web_split2.css }

# app/assets/stylesheets/application-web_split2.css.split2
//= include 'application-web.css'

# app/assets/stylesheets/application-web.css.scss
# <way, way to much stuff>

Let me know if I can help out with more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions