Code Monkey home page Code Monkey logo

Comments (4)

groovecoder avatar groovecoder commented on September 15, 2024

Is this something we can do (easily) in/with manifest.json directives for web-ext?

Adding config/build complexity to save __ kilobytes from the .xpi feels like a low priority.

from blok.

pdehaan avatar pdehaan commented on September 15, 2024

Actually, this currently may be blocked by lack of file filtering in web-ext (a la .jpmignore in jpm). I think we can safely ignore this until I can figure out status on some upstream bugs.

❤️

from blok.

pdehaan avatar pdehaan commented on September 15, 2024

Adding config/build complexity to save __ kilobytes from the .xpi feels like a low priority.

TL;DR: Removing unnecessary files from the XPI/ZIP could shrink the filesize from 205KB to 84KB.

Actually the ominous __ in your comment made me curious, so here's the report of what the current file sizes would theoretically be:

$ ls -lash web-ext-artifacts/blok-0.1.7*

-rw-r--r--  1 pdehaan  staff   205K Jul 29 11:14 web-ext-artifacts/blok-0.1.7-dev.zip
-rw-r--r--  1 pdehaan  staff    84K Jul 29 11:27 web-ext-artifacts/blok-0.1.7-edited.zip
-rw-r--r--  1 pdehaan  staff   211K Jul 29 10:46 web-ext-artifacts/blok-0.1.7-fx.xpi
-rw-r--r--  1 pdehaan  staff   205K Jul 29 11:24 web-ext-artifacts/blok-0.1.7-prod.zip

Where:

FILE SIZE COMMENTS
blok-0.1.7-fx.xpi 211KB Current built in the repo. Presumably signed by AMO.
blok-0.1.7-prod.zip 205KB Built using npm run build.
blok-0.1.7-dev.zip 205KB Built using npm run build-dev. Oddly same size as the npm run build ZIP.
blok-0.1.7-edited.zip 84KB Removed unused/empty files, and PNGs, etc.

blok-0_1_7-edited_zip

from blok.

pdehaan avatar pdehaan commented on September 15, 2024

From IRC w/ kumar:

from blok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.