6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#15044] Horde_JavascriptMinify needs UglifyJS API v3 backend
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ ._.\ / __ . [__) | >< / `| [__)_|_/ \\__.|___
Comment
> The current UglifyJS implementation in Horde-JavascriptMinify > complies with UglifyJS API v2. > https://github.com/mishoo/UglifyJS/tree/v2.x > > However, v2 of the API is deprecated and v3 is current state of the > art. Unfortunately, the command line handling of source maps differs > between v2 and v3. > https://github.com/mishoo/UglifyJS > > If a source map is needed when minifying with uglifyjs, than, with > v3, one basically needs to write the minified JS into a file > (--output <min.js>) (and not to stdout). If one adds --source-map as > cmdline option, a <min.js>.map gets created additionally. > > The --source-map-url option's value must then be passed into > --source-map <options>. But I failed to figure out whether to use > url= or root= here. > > I tried to come up with a patch for this, but failed due to lack of > understanding of what is needed in Horde. > > Maybe dropping source map support for the UglifiyJS JavascriptMinify > backend is an alternative option? > > Greets, > Mike
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers