webjars / webjars-play

MIT License
80 stars 34 forks source link

Preserve existing requirejs configuration #10

Closed huntc closed 11 years ago

huntc commented 11 years ago

Our requirejs setup is now a little more considerate when establishing requirejs configuration i.e. it now considers any existing configuration.

This is necessary when requiring to pass configuration from the html template e.g.:

<script type="text/javascript">
    var require = {
        config: {
            'controllers/Application' : {
                tzs: '@routes.Application.tzs()'
            }
        }
    };
</script>

Prior to the fix, we were simply overwriting any existing configuration.