black-mirror icon indicating copy to clipboard operation
black-mirror copied to clipboard

[feature]: Use AGTree and custom code over Hostlist Compiler

Open T145 opened this issue 1 year ago • 0 comments

Contact Details

No response

What's your idea?

https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/test/parser/rule.test.ts

This will likely require:

  1. Building the package on a separate Node subimage in the Dockerfile
  2. Copying the output to the main subimage
  3. Installing the runtime requirements on the main subimage

Then all that should be needed is a node -e command to parse Adblock lists. NPM can be uninstalled, reducing the image size by around a couple hundred megabytes.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

T145 avatar Apr 29 '24 15:04 T145