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

Minifying Multiple CSS/JS Files & Creating a Single, Minified File Without Repeated Standard Header Comments #421

Open
broberts-dev opened this issue Mar 7, 2024 · 0 comments

Comments

@broberts-dev
Copy link

broberts-dev commented Mar 7, 2024

I have a use case in which I'm minifying multiple CSS/JS files (i.e. a call to Minify::add() or Minify::addFile() for each file followed by a call to Minify::minify()), but the minified output contains the repeated standard header comments, including those containing @license. For what it's worth, this is all our code, so it's our license.

As I've looked through the documentation and source, I haven't determined a way of removing the standard header comments (with @license) or removing them AND then adding back one standard header comment (with @license) at the top of the final minified output/file.

If this is possible and I'm simply overlooking it, any direction or tips would be appreciated. It seems it would be possible if the comment removal behavior was configurable to some extent (e.g. allowing all comments to be removed regardless of @license).

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

No branches or pull requests

1 participant