Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Google Chrome extension package without specified files

Right now to create an extension with Google Chrome Extensions page we select a directory that contains created extension and it generates .crx file.

The problem is that it contains all files from this directory - for example, all docs, asset drafts, etc.

Is it possible to create some blacklist to ignore specified files like *.psd, *.pdf, docs/* ... ?

like image 525
hsz Avatar asked Sep 04 '25 04:09

hsz


1 Answers

The Chromium team decided not to implement a manifest (or similar mechanism) for including only the desired files in a .CRX.

The recommended workflow is to have a build step that outputs only the needed files in a dist directory, and to create the CRX from that directory. This is common practice for JavaScript libraries.

like image 103
Dan Dascalescu Avatar answered Sep 05 '25 17:09

Dan Dascalescu