Eric Guo's

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

Using Patch-package to Tuning CSS in 3rd Party Packages


Add patch-package

yarn add patch-package postinstall-postinstall

Apply the change

Open sublime-text and modify the source code

Generate the patch

yarn patch-package viewerjs

Auto patch

"private": true,
+ "scripts": {
+ "postinstall": "patch-package"
+ },
"dependencies": {