Preserve license in code minifying

Gold Contributor
Gold Contributor

Hi,

I want to add a small javascript library for scroll tracking in Tealium as a Javascript extension. Although the license of the code is prefixed with 

/*!
 * @preserve
 * ...
*/

the license is not preserved in the code minifying process. Is there a way to achieve this, without disabling minifying for the whole profile?

 

Greetings,

Andreas

2 REPLIES 2

Preserve license in code minifying

Tealium Employee

Hi @ahrasch,

 

Very good of you to abide by this but alas we do not have a flag to enable keeping copyright comments if minification is enabled in the interface. You could add the licence as a local variable to the lib like:

var license = "...text here";

 

As a reasonable workaround.

Preserve license in code minifying

Gold Contributor
Gold Contributor

Hi @Mauricio,

 

thanks for your answer. I already tought about this workaround, but wasn't sure if this satifies the license.

However, as long as there isn't a better way, I will proceed with your proposed solution.

 

Regards,

Andreas

Public