Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.22 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.22 KB

Development

  • Run script
# build files to './dev'
$ npm run dev
# start a server in a separate tab
$ node devServer.js

React/Redux hot reload

This project uses Webpack, react-transform, and Redux.

Using Redux DevTools Extension

You can use redux-devtools-extension on development mode.

Build

# build files to './build'
$ npm run build

Compress

# compress build folder to {manifest.name}.zip and crx
$ npm run build
$ npm run compress -- [options]

Options

If you want to build a crx file (auto update), please provide options, and add update.xml file url in [manifest.json](https://developer.chrome.com/extensions/autoupdate#update_url manifest.json).

  • --app-id: your extension id (can be get it when you first release extension)
  • --key: your private key path (default: './key.pem')
    you can use npm run compress-keygen to generate private key ./key.pem
  • --codebase: your crx file url

See the autoupdate guide for more information.