question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preserve copyright comments in the output

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
sanex3339commented, Dec 5, 2017

Will be ready for 0.13.0.

I wont put this functional under option, so all comments without @license, @preserved and javascript-obfuscator words will removed.

5reactions
sanex3339commented, Dec 17, 2017

0.13.0 just released. Have a nice day!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found