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

Auto complete of assetic custom assets #353

Closed
hoshsadiq opened this issue Sep 20, 2014 · 5 comments
Closed

Auto complete of assetic custom assets #353

hoshsadiq opened this issue Sep 20, 2014 · 5 comments

Comments

@hoshsadiq
Copy link

When providing custom assetic files like so:

assetic:
    assets:
        jquery_js:
            inputs:
                - '%kernel.root_dir%/Resources/bower/jquery/dist/jquery.js'

It does not auto complete nor is the file clickable when including in twig:

{% javascripts filter="?yui_js" output="js/jquery.js" '@jquery_js'%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}

It would be nice to be able to autocomplete and make it clickable.

@koesie10
Copy link

👍

@Haehnchen Haehnchen added the todo label Dec 8, 2014
@Haehnchen
Copy link
Owner

compiled inside appDevDebugProjectContainer.xml

<service id="assetic.asset_manager" class="Assetic\Factory\LazyAssetManager">
      <call method="addResource">
        <argument type="service">
          <service class="Symfony\Bundle\AsseticBundle\Factory\Resource\ConfigurationResource" public="false">
            <tag name="assetic.formula_resource" loader="config"/>
            <argument type="collection">
              <argument key="jquery_js" type="collection">
                <argument type="collection">
                  <argument>.../Resources/bower/jquery/dist/jquery.js</argument>
                </argument>
                <argument type="collection"/>
                <argument type="collection"/>
              </argument>
            </argument>
          </service>
        </argument>
        <argument>config</argument>
      </call>

@webkenny
Copy link

Unclear from your latest comment but does this now work? I'm the crazy-type that hates when things are shown as missing when they aren't. Ha! Thank you for all your awesome work on this plugin!

Edit: I am using plugin version 0.11.83 and the assets defined in config.yml still come up as missing.

@Haehnchen
Copy link
Owner

no, there is no commit reference. but i will implement this tomorrow.

@webkenny
Copy link

No rush, my friend. I appreciate the quick response! I'll stay tuned if you need a test-bunny.

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

No branches or pull requests

4 participants