Skip to content

This is example shows how to use Linaria with Rollup to output a package.

Notifications You must be signed in to change notification settings

fedek6/rollup-linaria-template

Repository files navigation

Rollup Linaria template

This is the one and only full example on how to use Linaria with Rollup. I've spent way too much time on this 😳

This example shows how to use Linaria to build React packages.

It's kind of hard to find any documentation for this library (which is kind of bummer). So, the best thing you can do with it is to create example repositories…

Scripts

  • yarn build — this should build dist and style.css in a root of this project.
  • npm publish — to publish to git NPM.

Usage

Installation:

echo "@fedek6:registry" "https://npm.pkg.github.com" > .yarnrc
yarn add @fedek6/rollup-linaria-template@1.0.3

Import:

import { HelloWorld } from "@fedek6/rollup-linaria-template";
import "@fedek6/rollup-linaria-template/styles.css";

Inspirations

About

This is example shows how to use Linaria with Rollup to output a package.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published