cobrateam / cobrateam/django-htmlmin

Minifier minify pre and script tags

Open
#36 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs clarification
Dominant language
Python
Stars
542
Forks
72
PR merge metrics
No merged PRs in 30d

Description

At some places I have found that minifier minify inline script tags and also pre tags. This is problem if we have single line -comments in script tags. This does not happen for every script tag but for 1 out of 8 it is happening, can't understand what is the problem.
You can check for pre tags with following code, it is minifying it
http://djangosnippets.org/snippets/727/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported behavior with the linked djangosnippets.org example, focusing on pre tags and inline script tags containing single-line comments. Compare minified output with the original and define done as preserving the contents of these tags without unwanted minification.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.