This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Keep comments? #15
Comments
Martii
referenced
this issue
in Martii/OpenUserJS.org
Nov 18, 2014
* Unfortunately I don't see an option to keep comments. :\ * Disable minification in `sendMeta` and `sendScript` * Missing in README.md ... added and whoops Applies to OpenUserJS#417
You can now pass UglifyJs options, for example keeping comment: app.use(function(req, res, next)
{
if (/\.(user|meta)\.js$/.test(req.url)) {
res._uglifyOutput = {
comments: true
};
}
next();
}); |
Awesome!! I look forward to testing this... thank you. :) btw great work with this... it's very easy to configure and use. |
Working well here but a few issues with uglify-js and node release version. I'll see if I can perhaps address at least some of those across the pond.... closing... Thank you again. |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Over at our project we could really use the keep comments option in this package from uglify-js but still minify everything else (in select JavaScript code)... any chance of that here?
TIA.
The text was updated successfully, but these errors were encountered: