browser-extension icon indicating copy to clipboard operation
browser-extension copied to clipboard

Webpack + React Prototype

Open kamescg opened this issue 8 years ago • 2 comments

Webpack helps generate the perfect* bundle

*What's ever really perfect :)

The React family has been added (Redux, Router, Sagas) to help scale the interface.

As mentioned in a recent Tweet (https://twitter.com/GetGitcoin/status/947533717689450497) the future is bright for the Gitcoin ecosystem. As Gitcoin features become interconnected, hopefully predictable interface state management can help designers and developers more quickly and easily code new features.

Common async management (generators, await and promises) are implemented within the application bundle. Helping designers and developers more easily reason about Javascript's notorious single threaded callback style.

kamescg avatar Jan 01 '18 16:01 kamescg

i get an error when i try to load this into chrome.. http://bits.owocki.com/2O1p2I033V0p/Screen%20Shot%202018-01-02%20at%209.14.31%20AM.png

i tried running these commands from the root chrome_ext folder

npm run build || yarn build <---- Bundles Chrome Extension
npm run start || yarn start <---- React Hot Loading for Popup Development (localhost: 3000)

but i got some npm errors. i suppose i need to npm install it first?

owocki avatar Jan 02 '18 16:01 owocki

Sorry should have clarified :)

npm install
npm run build

Upload the build folder to Chrome.

kamescg avatar Jan 02 '18 17:01 kamescg