mini-asset
mini-asset copied to clipboard
Uglifyjs with sourcemaps option and file list.
Uglifyjs doesn't create source maps from STDIN, so we need the list of files.
You could put the domain in the asset_compress.ini like
--source-map-url http/yourdomain/cached_js/scripts.js.map.
And the option to create it.
create_map = true.
Current coverage is 86.68% (diff: 0.00%)
@@ master #38 diff @@
==========================================
Files 35 35
Lines 1022 1029 +7
Methods 173 174 +1
Messages 0 0
Branches 0 0
==========================================
Hits 892 892
- Misses 130 137 +7
Partials 0 0
Powered by Codecov. Last update 18d2be3...83bae0f
In the compress_asset.ini file:
[filter_Uglifyjs]
options = -c --source-map-include-sources --source-map-url http://domain/cached_js/scripts.js.map --source-map WEBROOT/cache_js/scripts.js.map
Thanks, I can use that to update the documentation.
@markstory Is there sth else to do? I really need this feature :)
I tried with realpath() to get it to work with file names with spaces, but I get errors at the helper level, which is beyond the scope of this PR.