According to this post on meta.stackexchange.com this is the righ place to ask questions about software licensing. Hope this is still valid.
My question is about JavaScript, but I think it does apply for other languages as well.
Let’s say I have a worklow in gulp where:
- all required JavaScript files are merged into one file
- this file is then minified
- comments will get lost (but maybe must be kept)
My questions are:
- Is this legal?
- How do I maintain/keep the current license in tact during this process?
The licenses I worry about are:
- GPL
- MIT licence
- WTFPL
- jQuery’s licence
Ideas I have to solve this problem:
A. Keep the original comment from the beginning of each JavaScript file
The xyz.min.js would look like:
/** * Lib A, copyright … */ var $ = {} … /** * Lib B, copyright … */ var _ = {} …
B. Add all licenses at the beginning of the file
/** * Lib A, copyright … */ /** * Lib B, copyright … */ var $ = {} … var _ = {} …
C. List all used libraries on the imprint page and remove all comments from the minified file
This page uses Lib A:
Licence Info
D. Remove all licence comments, don’t show an information on the imprint page
Somehow, this seems not to be the right approach.