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 8019053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:16:29+00:00 2026-06-04T21:16:29+00:00

Config: assetic: debug: %kernel.debug% use_controller: false read_from: %kernel.root_dir%/../public filters: less: node: /usr/bin/node node_paths: [/usr/local/lib/node_modules]

  • 0

Config:

assetic:
    debug:          %kernel.debug%
    use_controller: false
    read_from:      %kernel.root_dir%/../public
    filters:
        less:
            node: /usr/bin/node
            node_paths: [/usr/local/lib/node_modules]

Twig template:

{% block stylesheets %}
{% stylesheets filter='less'
    '@MyBundle/Resources/public/bootstrap/less/bootstrap.less'
%}
    <link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
{% endblock %}

This works almost good.

I have one problem, there are no images, they are referenced relative url(“../img/glyphicons-halflings.png”) but they are not there.

And one question, this works with node.js, but what if I don’t have node.js on production server, will it work if I just upload compiled 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-04T21:16:30+00:00Added an answer on June 4, 2026 at 9:16 pm

    I think you should use the cssrewrite filter too, like this:

    {% block stylesheets %}
    {% stylesheets filter='less,cssrewrite'
        '/bundles/mybundle/bootstrap/less/bootstrap.less'
    %}
        <link rel="stylesheet" href="{{ asset_url }}" />
    {% endstylesheets %}
    {% endblock %}
    

    Don’t forget to publish your assets with this command:

    app/console assets:install --symlink web
    

    And to answer your final question, yes uploading the compiled css will do the trick.

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

Sidebar

Related Questions

/cake/config/paths.php /** * Path to the public images directory. */ define('IMAGES', WWW_ROOT.'images'.DS); /** *
Issue We are using config transforms inside our solution. For example: Debug, Test, Staging,
config I have : <configuration> <system.web> <compilation debug=true targetFramework=4.0 /> <authentication mode =Forms> <forms
a.config.js var a = 3; index.html <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
My config file is [core] repositoryformatversion = 0 filemode = true bare = false
class Config { public: static int OUTPUT_TO_FILE; static int NEED_TO_TRAIN; static int NO_FILE_TRAIN; static
app.config <system.net> <mailSettings> <smtp deliveryMethod=Network> <network defaultCredentials=false host=smtp.gmail.com password=aaa port=587 userName=noreplay@aaa.si /> </smtp> </mailSettings>
My config.ru is as follows: use Rack::Static, :urls => [/images], :root => public run
config.ini: [globalloads] plugin.SWPlugin = 1 plugin.SWPlugin.params.1 = true plugin.SWPlugin.params.2 = 10 [testz : globballoads]
config.php put at the root level, this file will be included in any pages.

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.