Demonstrates Polaris inside a React app served via webpack
and webpack-dev-server
.
Clone this project and install all the project dependencies.
With Yarn
yarn install
With npm
npm install
Run the local webpack
development server.
With Yarn
yarn start
With npm
npm start
Open http://localhost:8080 in your browser and you should see the Polaris example application.
You can bundle up your application using the preconfigured webpack build.
With Yarn
yarn build
With npm
npm build
This generates a build
directory containing index.html
and bundle.js
. The index loads all Polaris styles via the Polaris CDN and the application scripts via bundle.js