Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bang so minification is easier #1481

Merged
merged 1 commit into from
Jan 12, 2015
Merged

Add bang so minification is easier #1481

merged 1 commit into from
Jan 12, 2015

Conversation

garrypolley
Copy link
Contributor

Depending on the minification that's used having the /*! ... comment ..*/ is helpful. I suggest adding the bang here so the custom builds do not have to modify the source that's generated and add a ! to ensure they maintain the MIT copyright when minifying.

I think it's the custom build that reads from this file to add the license. I could be wrong, in which case, I hope the thing that does the custom build adds the ! to the start of the copyright/license comment.

Depending on the minification that's used having the `/*! ... comment ..*/` is helpful.  I suggest adding the bang here so the custom builds do not have to modify the source that's generated and add a `!` to ensure they maintain the MIT copyright when minifying. 

I think it's the custom build that reads from this file to add the license.  I could be wrong, in which case, I hope the thing that does the custom build adds the `!` to the start of the copyright/license comment.
@patrickkettner
Copy link
Member

Hey @garrypolley!

Depending on the minification that's used

Which situations are that?

@garrypolley
Copy link
Contributor Author

@patrickkettner Thanks for responding.

Specifically we are using the uglifier minifier with a Rails application. When we make a custom build of Modernizr it does not include the /*! at the start of the license comment. We'd like it to have that (or the word copyright) in the body of the comment so we can keep the license more easily in our minified code.

It may not seem like a big deal, but it's important to us to attribute all the awesome libraries (like this one) that we use in our production code. We'd prefer not to have to modify the source to keep the license comment.

@patrickkettner
Copy link
Member

Nah, totally cool with adding the !, just wanted the reasons more explicit

patrickkettner added a commit that referenced this pull request Jan 12, 2015
Add bang so minification is easier
@patrickkettner patrickkettner merged commit 0b127e0 into Modernizr:master Jan 12, 2015
patrickkettner added a commit to patrickkettner/Modernizr that referenced this pull request Feb 22, 2015
Add bang so minification is easier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants