Skip to content

Commit

Permalink
chore(readme): improve Comment Removal description
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Jul 22, 2024
1 parent 6b0c44d commit 5bf73b0
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,29 +135,10 @@ This ensures that only relevant source code is included in the packed file. You

When `output.removeComments` is set to `true`, Repopack will attempt to remove comments from supported file types. This feature can help reduce the size of the output file and focus on the essential code content.

Currently supported file types for comment removal:

- HTML (.html)
- CSS (.css, .scss, .sass)
- JavaScript, React (.js, .jsx)
- TypeScript (.ts, .tsx)
- Vue (.vue)
- Svelte (.svelte)
- Python (.py)
- PHP (.php)
- Ruby (.rb)
- C (.c)
- C# (.cs)
- Java (.java)
- Go (.go)
- Rust (.rs)
- Swift (.swift)
- Kotlin (.kt)
- Dart (.dart)
- Shell (.sh)
- YAML (.yml, .yaml)

Note: The comment removal process is designed to be conservative to avoid accidentally removing code. In some complex cases, especially with nested comments or language-specific peculiarities, some comments might be retained.
Supported languages include:
HTML, CSS, JavaScript, TypeScript, Vue, Svelte, Python, PHP, Ruby, C, C#, Java, Go, Rust, Swift, Kotlin, Dart, Shell, and YAML.

Note: The comment removal process is conservative to avoid accidentally removing code. In complex cases, some comments might be retained.



Expand Down

0 comments on commit 5bf73b0

Please sign in to comment.