Files
polaris-react/examples/browserify
..
2017-04-13 12:46:14 -04:00
2019-03-15 10:59:27 -04:00
2019-03-15 14:11:16 -04:00

Example app using Browserify

Demonstrates Polaris inside a React app bundled via Browserify.

Dependencies

Getting started

Installation

Clone this project and install all the project dependencies.

With Yarn

yarn install

With npm

npm install

Development

Start your development server.

With Yarn

yarn start

With npm

npm start

This will generate a ./build directory with an index.html and bundle.js file. Open the ./build/index.html file into a web browser to see the example application.

./build/index.html loads all the Polaris styles via the Polaris CDN and scripts via ./build/bundle.js.

The start npm script uses watchify to recompile ./build/bundle.js with changes youve made in the ./src directory. Reload the ./build/index.html page in your browser to see the updated changes.