Skip to content

Commit

Permalink
chore(refactor): remove smoothscroll
Browse files Browse the repository at this point in the history
  • Loading branch information
liuly0322 committed Mar 12, 2024
1 parent 0bb6196 commit 7ff6882
Show file tree
Hide file tree
Showing 6 changed files with 310 additions and 347 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

> Wow, such a lovely HTML5 music player
Fully ESM version of [APlayer](https://github.com/MoePlayer/APlayer/) with TypeScript support. With Rollup and esbuild, [index.min.js](build/index.min.js) is **50% smaller** than the original [APlayer.min.js](dist/APlayer.min.js), from 58KB to ~30KB.
Fully ESM version of [APlayer](https://github.com/MoePlayer/APlayer/) with TypeScript support. With Rollup and esbuild, [index.min.js](build/index.min.js) is **50% smaller** than the original [APlayer.min.js](dist/APlayer.min.js), from 58KB to less than 30KB.

## Why this

Expand All @@ -18,11 +18,11 @@ See this [blog post](https://blog.liuly.moe/posts/tree-shaking).
# only import APlayer constructor
demo_build/index.html 1.95 kB │ gzip: 0.79 kB
demo_build/assets/index-3p8iLQ3k.css 10.22 kB │ gzip: 2.19 kB
demo_build/assets/index-CkPi-9F1.js 29.23 kB │ gzip: 9.44 kB
demo_build/assets/index-dYKzm1rR.js 27.83 kB │ gzip: 8.87 kB
# import everything
demo_build/index.html 1.95 kB │ gzip: 0.79 kB
demo_build/assets/index-Bi0rxlmU.css 12.04 kB │ gzip: 2.47 kB
demo_build/assets/index-x6uEdt4E.js 32.27 kB │ gzip: 9.99 kB
demo_build/assets/index-Bp2Me_6t.js 30.86 kB │ gzip: 9.42 kB
```

`APlayer.min.js` is still in `dist` folder, but by default this package exports `src/js/index.js`.
Expand Down
Loading

0 comments on commit 7ff6882

Please sign in to comment.