Skip to content

Instantly share code, notes, and snippets.

@kseta
Created March 5, 2014 11:53
Show Gist options
  • Select an option

  • Save kseta/9365820 to your computer and use it in GitHub Desktop.

Select an option

Save kseta/9365820 to your computer and use it in GitHub Desktop.

app/config/config.yml にて Asset の設定を書くことができる

# Assetic Configuration
assetic:
      assets:
        app_resources_js:
            inputs:
                - '%kernel.root_dir%/Resources/public/js/*'
        app_resources_scss:
            inputs:
                - '%kernel.root_dir%/Resources/public/scss/*'
            filters:
                - compass
{% javascripts '@app_resources_js' output="js/layout.js" %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
{% stylesheets '@app_resources_scss' filter='compass' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}

参考URL

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