Skip to content

code bundling & optimization #14

@hxrts

Description

@hxrts

This touches on a few related topics:

  • Config files, as described in this issue, would introduce tool-specific json files which specify permissions, source assets, and other tool data. For browser extensions, such information is typically declared in the root manifest.json file, which means we can either load everything and use namespace restriction or provide functions to do so dynamically, or we can statically compile a new manifest.json.
  • Eventually we may be running several simultaneous frameworks, so we'll likely want to start integrating code optimization to deduplicate and exclude unnecessary code. The Google Closure Compiler is best in class here.
  • A compile step might eventually hook into continuous integration and packaging of the chrome extension for the app store.

At first glance, Webpack seems like the best option if we're to go in this direction, but I'd like to consider any viable alternatives before making a commitment.

Metadata

Metadata

Labels

coreTopics specific to the core codebase.enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions