hearsayit / HearsayRequireJSBundle

RequireJS integration for Symfony2.
130 stars 55 forks source link

directories specified in the array "paths" in yml configuration file are not processed correctly #59

Closed apsavin closed 10 years ago

apsavin commented 10 years ago

part of my yml configuration file:

hearsay_require_js:
  initialize_template: HearsayRequireJSBundle::initialize.html.twig
  base_dir: "%kernel.root_dir%/Resources/public/js"
  base_url: "compiled/js/require"
  paths:
    global: "%kernel.root_dir%/Resources/global/js"

Actual result in generated config:

var require={"baseUrl":"/compiled/js/require","locale":"en","paths":{"global":"/compiled/js/require/global/js"

Expected result in generated config:

var require={"baseUrl":"/compiled/js/require","locale":"en","paths":{"global":"/compiled/js/require/global"

As you can see, js subdirectory is redundant here: /compiled/js/require/global/js