mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-01-12 22:44:36 +08:00
Example app using webpack
Demonstrates Polaris inside a React app served via webpack and webpack-dev-server.
Dependencies
Getting started
Installation
Clone this project and install all the project dependencies.
With Yarn
yarn install
With npm
npm install
Development
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.
Build
You can bundle up your application using the preconfigured webpack build.
With Yarn
yarn run build
With npm
npm run build
This generates a build directory containing index.html and bundle.js. Styles are included in the base bundle and are injected into a style tag in the html using the style-loader webpack plugin.