-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Assetic fixes #1991
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
Closed
Closed
Assetic fixes #1991
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Don’t suggest that it’s a good idea to remove the list of bundles ent…
…irely.
- Loading branch information
commit 1e219c96e30b64eb2848d9fe43a23d1bd537af75
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,18 +78,16 @@ drawn from various sources such as from within a bundle: | |
|
||
.. tip:: | ||
|
||
For the above example to work, you must either add your bundle to the list | ||
of bundles that Assetic is allowed to handle (which is *none* in a default | ||
Symfony installation), or remove the bundle list from the configuration | ||
altogether: | ||
For the above example to work, you must also add your bundle to the list | ||
of bundles that Assetic handles, which is empty by default: | ||
|
||
.. code-block:: yaml | ||
|
||
# app/config/config.yml | ||
assetic: | ||
debug: "%kernel.debug%" | ||
use_controller: false | ||
#bundles: [ ] | ||
bundles: [ AcmeFooBundle ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be |
||
filters: | ||
# ... | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%kernel.debug%
is the default value for theassetic.debug
setting, so I think this line isn't needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in the config like this in the standard distribution though so its in keeping with that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small detail either way, but what I'd love the most is to use the
# ...
in this spot:Also, is this new note actually correct yet? My impression is that you don't need to add your bundle to the
bundles
configuration until you place astylesheets
orjavascripts
tag into a template that lives inside that bundle. If yourstylesheets
orjavascripts
tags are only in a template inapp/Resources/views
(even if you're referencing CSS/JS files that are in some bundle), then you don't need to add the bundle to thebundles
key.If I'm wrong, some please shout at me! :) I just wanted to make sure we were clear on that before merging.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strongly suspect that you are correct. It makes a lot more sense to me now. I’ll make some tests next week and rewrite accordingly.