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

  • Home
  • SEARCH
  • 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 8765737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:21:51+00:00 2026-06-13T16:21:51+00:00

I am using Assetic with a symfony2 application which mostly works fine. One thing

  • 0

I am using Assetic with a symfony2 application which mostly works fine.
One thing that is bugging me though is that in the dev enviroment (app_dev.php) assetic onelines my javascript files. This is a pain in the ass to debug. (Guess what : the error is on line 1 … duhh )

Is there a way to tell Assetic not to oneline the js files in the dev enviroment ?

For the moment I have : (config.yml)

# Assetic Configuration
assetic:
    debug:          %kernel.debug%
    use_controller: false
    bundles:        [ ]
   # java: /usr/bin/java
    filters:
        cssrewrite: ~
        # closure:
        #     jar: %kernel.root_dir%/java/compiler.jar
        yui_css:
            jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
        yui_js:
            jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"

And in config_dev.yml :

assetic:
    use_controller: true
  • 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-13T16:21:52+00:00Added an answer on June 13, 2026 at 4:21 pm

    You should disable minification in debug mode. See this document for more info:

    http://symfony.com/doc/master/cookbook/assetic/yuicompressor.html#disable-minification-in-debug-mode

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

Sidebar

Related Questions

I am using assetic to manage my assets in a Symfony2 application. I am
I'm using Symfony2 and assetic in an existing project and I can't figure out
We are building a new site using Symfony2, and Assetic looks very promising for
I'm using Assetic to include Javascript files, but when used in the dev environment,
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
I'm using Symfony2, with Assetic and Twig. I have various frontend libraries - Backbone,
I'm trying to send data from a client application using jQuery to a REST
I have been trying to setup Symfony2 on Windows so that I can use
I am using the Assetic module for ZF2 from widmogrod. Assetic\Filter\YUI\JsCompressorFilter is returning the
I have a few scss files imported into a larger one using scss's @import

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.