Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
public
src
.gitignore
README.md
package.json
webpack.config.js
yarn.lock

README.md

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.

You can’t perform that action at this time.