Skip to content

MIT's licence appearing in compressed file #2412

@NeilFraser

Description

@NeilFraser

The Closure compiler leaves all licences in the compiled code, presumably for legal reasons. This resulted in dozens of copies of Google's standard licence in the compressed JS files. To fix this, there's a regular expression that detects Google's standard Apache licences and strips them:
https://github.com/google/blockly/blob/master/build.py#L394

However, there's now an MIT licence that's lurking in the compressed file:
https://github.com/google/blockly/blob/master/blockly_compressed.js#L1579

This represents 634 bytes that do nothing. The source is here:
https://github.com/google/blockly/blob/master/core/dropdowndiv.js

Can we get written permission from MIT that it's ok to strip their licence in compiled code only? No change to their source code or to their licence.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions