nonzzz / vite-plugin-compression

vite plugin. compress your bundle file.
MIT License
172 stars 10 forks source link

Refactor: compress process #3

Closed nonzzz closed 2 years ago

nonzzz commented 2 years ago

Background

FYI. It's a break change. In past we compress all of file at close Bundle lifecycle. But discovered over time during use this plugin. Find that we not need compress the static directory. So In this pull request. Will remove those logic.

Major

Feature & Improves

Patch

codecov[bot] commented 2 years ago

Codecov Report

Merging #3 (9e88997) into master (e55a7bb) will decrease coverage by 0.93%. The diff coverage is 79.31%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/nonzzz/vite-compression-plugin/pull/3/graphs/tree.svg?width=650&height=150&src=pr&token=NG4475OP6B&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kanno)](https://codecov.io/gh/nonzzz/vite-compression-plugin/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kanno) ```diff @@ Coverage Diff @@ ## master #3 +/- ## ========================================== - Coverage 87.69% 86.75% -0.94% ========================================== Files 4 4 Lines 195 151 -44 Branches 23 18 -5 ========================================== - Hits 171 131 -40 + Misses 22 20 -2 + Partials 2 0 -2 ``` | [Impacted Files](https://codecov.io/gh/nonzzz/vite-compression-plugin/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kanno) | Coverage Δ | | |---|---|---| | [src/utils.ts](https://codecov.io/gh/nonzzz/vite-compression-plugin/pull/3/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kanno#diff-c3JjL3V0aWxzLnRz) | `100.00% <ø> (+7.69%)` | :arrow_up: | | [src/compress.ts](https://codecov.io/gh/nonzzz/vite-compression-plugin/pull/3/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kanno#diff-c3JjL2NvbXByZXNzLnRz) | `70.00% <63.63%> (-3.53%)` | :arrow_down: | | [src/index.ts](https://codecov.io/gh/nonzzz/vite-compression-plugin/pull/3/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kanno#diff-c3JjL2luZGV4LnRz) | `91.25% <88.88%> (+0.72%)` | :arrow_up: |