mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-01-12 22:44:36 +08: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 you’ve made in the ./src directory. Reload the ./build/index.html page in your browser to see the updated changes.