We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RemoveComments
CollapseWhitespace
//
Currently the RemoveComments, and thus also CollapseWhitespace middlewares don't correctly strip out // Comments from JavaScript <script> tags.
// Comment
<script>
The described issue leads to broken compressed pages due to JavaScript code being // Commented out.
This also leads to confusion with developers trying to implement this package, some might abandon the package, thinking it is broken while it is not.
Replace all your JavaScript // Comments with <!-- Comment -->s
<!-- Comment -->
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Detailed description
Currently the
RemoveComments
,and thus also
CollapseWhitespace
middlewares don't correctly strip out// Comment
s from JavaScript<script>
tags.Context
The described issue leads to broken compressed pages due to JavaScript code being
// Comment
ed out.This also leads to confusion with developers trying to implement this package,
some might abandon the package, thinking it is broken while it is not.
Work Around
Replace all your JavaScript
// Comment
s with<!-- Comment -->
sYour environment
The text was updated successfully, but these errors were encountered: