Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8292059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:20:24+00:00 2026-06-08T13:20:24+00:00

I have 2 files, one is a .css (inside vendor/somevendor/somelibrary/css/), and the other one

  • 0

I have 2 files, one is a .css (inside vendor/somevendor/somelibrary/css/), and the other one is a .scss (inside @ProjectMainBundle/Resources/public/css/).

I want the .scss to be compiled into a .css with the Sass filter, and then both .css files to be minified with the Yui filter. I have tried different variations of this:

    {% stylesheets
        '%kernel.root_dir%/../vendor/somevendor/somelibrary/css/somelibrary.css'
        '@ProjectMainBundle/Resources/public/css/*'
        filter='compass,yui_css' %}
        <link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" />
    {% endstylesheets %}

The problem is that the Sass filter is also being applied to the .css file, which throws indentation errors.

In my config.yml I added the corresponding ‘apply_to’ parameter but didn’t help:

    # Assetic Configuration
    assetic:
            debug:          %kernel.debug%
            use_controller: false
            bundles:        [ProjectMainBundle]
            #java: /usr/bin/java
            filters:
                    cssrewrite: ~
                    #closure:
                    #    jar: %kernel.root_dir%/Resources/java/compiler.jar
                    sass:
                            bin: /usr/local/bin/sass        
                            apply_to: "\.scss$"
                    compass:
                            bin: /usr/local/bin/compass
                            apply_to: "\.scss$"
                    yui_css:
                            jar: %kernel.root_dir%/../vendor/yahoo/yui-compressor/build/yuicompressor-2.4.7.jar
                            apply_to: "\.css$"
                    yui_js:
                            jar: %kernel.root_dir%/../vendor/yahoo/yui-compressor/build/yuicompressor-2.4.7.jar
                            apply_to: "\.js$"

So how do I do this? I don’t want to have more than 1 resulting .css.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:20:26+00:00Added an answer on June 8, 2026 at 1:20 pm

    Found it: https://github.com/kriswallsmith/assetic/issues/101

    Remove the ‘filter=compass,yui_css’ part.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, here's a tough one: I have these website with several CSS files that
I have a Master Page which has an associated css file. On one of
I have three files: one called sql.php witch has a class db that I
I have two files one with senators who are retiring and one of complete
I have two template files: one for the form (loginFormTemplate) and one for the
At some point I must have moved files from one location to another using
Here I am trying to implement the jQuery I have two main files one
I have a collection of static libraries (.lib) files one of which may have
I have this code to open multiple files one at a time that is
I'm trying to pass files one by one(I have to dot that since executable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.