Comments (4)
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.
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.
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. |
from blok.
From IRC w/ kumar:
- pdehaan> can the latest web-ext ignore arbitrary files/folder via the
web-ext build
command? - kumar> not currently. It's unfortunately not a trivial patch mozilla/web-ext#131
- kumar> if you are using web-ext as a library then it should be pretty easy. You can pass in custom minimatch rules https://github.com/mozilla/web-ext/blob/master/src/cmd/build.js#L144
from blok.
Related Issues (20)
- The Report a problem input blocks context menu HOT 1
- Indicate the protection is active even on pages where is nothing to block HOT 10
- window is null ext-utils.js:990 HOT 3
- "Report a problem" button not available when Tracking Protection is disabled
- Breakage Analysis: 2016-11-01 HOT 12
- Change copy/text of "notes" field HOT 1
- "You reported a problem with this page" displayed on pages I've never reported
- Blok icon disappears after moving tab to a new window HOT 1
- Block tracking but not advertising HOT 3
- Add a way to review and edit the whitelisted domains. HOT 5
- Change the text next to the toggle switch, to clarify that it only toggles Tracking Protection for the current domain.
- Uh oh. Tracking Protection could not be enabled. Try again later. HOT 5
- Add-on implementation blocks apps.facebook.com differently than native implementation
- Shim requests for utag.js with a no-op utag.view response script HOT 3
- "Share this" buttons do not load Facebook and Twitter HOT 4
- Unable to sign into paypal on ebay checkout HOT 1
- Too many messages in the browser console HOT 3
- Errors in error console HOT 2
- Option to use EFF/Privacy Badger blocklists instead of Disconnect. HOT 1
- CODE_OF_CONDUCT.md file missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blok.