there is this cool feature Source Maps in html5. In my Symfony2 project I use jQuery mobile which uses this feature (I use the BmatznerJQueryMobileBundle for integration).
In my <head>
i do following:
{% javascripts
'@BmatznerJQueryBundle/Resources/public/js/jquery.min.js'
'@BmatznerJQueryMobileBundle/Resources/public/js/jquery.mobile.min.js'
%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
This works fine for the js files, but Chrome gets an 404 error trying to get the source maping file. Does anybody know how to solve this?
The Source Mapping in the jquery.mobile.min.js file looks like this and is also in the same directory.
//# sourceMappingURL=jquery.mobile-1.4.2.min.map
error:
web/js
to the actual source map, but had no luck. – Miran