tshaddix / webext-redux

A set of utilities for building Redux applications in Web Extensions.
MIT License
1.23k stars 180 forks source link

Add UMD output build #223

Closed sneakypete81 closed 5 years ago

sneakypete81 commented 5 years ago

As an addon developer, i would like to use webext-redux in my project without the need for webpack/rollup/etc.

This PR adds a build command to produce dist/webext-redux.js and webext-redux.min.js, which can be included directly in an HTML <script> tag.

It's based on a similar config in Redux. I'm very happy to modify the package.json scripts section to whatever you prefer - perhaps I should add something to prepublishOnly?

tshaddix commented 5 years ago

Thanks @sneakypete81 ! Will be part of next release