Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine files in debug #844

Open
bmarek-ias opened this issue Feb 6, 2017 · 2 comments
Open

Combine files in debug #844

bmarek-ias opened this issue Feb 6, 2017 · 2 comments

Comments

@bmarek-ias
Copy link

I have a particulate issue where I need assets to be combined in debug, but I need "debug: '%kernel.debug%'" because mimifier to work in prod but not in dev. How do I configure assetic to do that?

@bmarek-ias
Copy link
Author

I think I got it: combine=true

{% javascripts
'bundles/assets/js/app.config.js'
'bundles/assets/js/app.js'
'bundles/assets/js/notification/SmartNotification.js'
'bundles/assets/js/smartwidgets/jarvis.widget.js'
combine=true
filter='?uglifyjs2'
output='js/compiled_app.js' %}

@stof
Copy link
Collaborator

stof commented Feb 7, 2017

yeah, this is indeed what you need. The default value for combine is based on the debug mode (inverting it), but you can force combining the assets all the time. (this cannot be done globally in the config though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants