Preserve copyright comments in the output
See original GitHub issueHi Folks! Quick question, “How do we preserve JSDoc-style copyright comments in the output?”
e.g.
/**
* @license
* Component.js 2.1.5
* (c) 2017 ACME, INC
* License agreement...
* By using this software, you agree that you have read, understood, and will comply with the license terms and conditions.
* Please visit https://acme.com/license to learn more.
*/
var _0x78sgf=['u1/as9raasd=','asd8asd3=' . . .
Thinking something similar to the uglify-js --comment
flag:
https://www.npmjs.com/package/uglifyjs
Preserve copyright comments in the output. By default this
works like Google Closure, keeping JSDoc-style comments
that contain "@license" or "@preserve".
Thanks and fantastic project!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How and why to properly write copyright statements in your code
The copyright statement is not required by law, but in practice very useful as proof, at best, and indicator, more likely, of what...
Read more >Should I include copyright in a minified distribution of my js file?
Yes, you should keep copyright and license notices in minified files as well. In case you haven't written ...
Read more >Add Copyright or License text to the Source Files Recursively
Ability to add a block of text(Copyright, License, Any Generic Comment, etc) to the top of the Source Code(or any target files).
Read more >Copyright Notices (Information for Maintainers of GNU Software)
The copyright statement may be split across multiple lines, both in source files and in any generated output. This often happens for files...
Read more >Does Copyright Literally Protect Source Code Figuratively?
For questions and comments contact: Chad Rutkowski. Partner ... protection can yield counterintuitive results, such as extending copyright.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will be ready for
0.13.0
.I wont put this functional under option, so all comments without
@license
,@preserved
andjavascript-obfuscator
words will removed.0.13.0
just released. Have a nice day!