kangax / kangax/html-minifier

How do i minify javascript in custom tag?

Open
#1,047 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
577
PR merge metrics
No merged PRs in 30d

Description

```html

console.log(1 < 2)

```
say i have the code above, how do i parse javascript inside a `wxs` tag?
or let's say how do i avoid the character '<' inside the `wxs` tag from being treated as a started tag?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the HTML snippet containing a tag and the JavaScript expression with '<'. Trace the custom-tag parsing and JavaScript minification entry points, then verify that '<' inside wxs content is preserved as JavaScript rather than treated as a new HTML tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.