CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
491 stars 53 forks source link

Unable to use parameter to choose different folder for application.js #201

Closed Almas-Khan closed 5 years ago

Almas-Khan commented 9 years ago

I'm attempting to segregate my assets, and I'm having an issue.

Using the following tag,

<?= javascript_include_tag('admin/application') ?>

My asset URL generated is simply left blank, only containing the root URL, implying the asset-pipeline was unable to locate the application.js

<script src="http://dev.local/assets/" ></script>

instead of

<script src="http://dev.local/assets/application.js" ></script>

My directory structure has the core asset-pipeline generated files, and an additional directory assets/admin, which contains the core directories,

assets/
     admin/
     admin/javascripts/
          application.js
     admin/stylesheets/
     admin/images/
javascripts/
     application.js
stylesheets/
images/

Anyone point me in the right direction, what exactly I'm doing incorrectly here? The asset-pipeline doesn't have any issues using the default application.js when the following is given.

<?= javascript_include_tag() ?>