Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 620 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 620 Bytes

abstract-link-loader

EXPERIMENTAL/WIP

This loader is not ready for production use and is still a WIP. PRs welcomed!

Usage

Create a Abstract "link" file in your project:

$ create-react-app my-project
$ cd my-project
$ echo -n 'export default { url: "ABSTRACT_SHARE_URL_FOR_ICONS_FILE" }' > src/icons.link.js

Import styles from any Abstract layer:

import { styles } from "./icons.link";

Start webpack with ABSTRACT_TOKEN defined in environment:

$ ABSTRACT_TOKEN=my-token npm start

Visit https://sdk.goabstract.com/docs/authentication/ to learn more about abstract tokens.