react-scripts-webextension
Configuration and scripts for Create React WebExtension.
Last updated 2 years ago by constfun .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-scripts-webextension 
SYNC missed versions from official npm registry.

react-scripts-webextension

This package includes scripts and configuration used by Create React WebExtension.
Please refer to its documentation:

  • Getting Started – How to create a new extension.
  • User Guide – How to develop extensions bootstrapped with Create React WebExtension.

Differences to react-scripts (upstream)

TypeScript support

Multiple create-react-app "bundles"

WebExtensions are comprised of background scripts, content scripts, option pages, and popup pages. Each of these is a separate set of HTML, CSS, and JavaScript.

However, create-react-app produces a single set of index.html, main.js, and main.css as its build output. This is a simple and sensible default considering the goals of the upstream project.

As noted above, the need for multiple sets of HTML, CSS, and JS files is unavoidable even for the simplest of extensions. Create React WebExtensions addresses this need by introducing a simple concept of packs on top of create-react-app.

Any subdirectory containing an empty file named _bundle will produce its own set of HTML, CSS, and JavaScript files.

This feature is opt in. Simply create a new project and use the same workflow as with any Create React app, the directory structure should make sense.

Current Tags

  • 0.8.5                                ...           latest (2 years ago)

5 Versions

  • 0.8.5                                ...           2 years ago
  • 0.8.4                                ...           2 years ago
  • 0.8.3                                ...           2 years ago
  • 0.8.2                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |