This is the one and only full example on how to use
Linaria
withRollup
. 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…
yarn build
— this should builddist
andstyle.css
in a root of this project.npm publish
— to publish to git NPM.
Installation:
echo "@fedek6:registry" "https://npm.pkg.github.com" > .yarnrc
yarn add @fedek6/[email protected]
Import:
import { HelloWorld } from "@fedek6/rollup-linaria-template";
import "@fedek6/rollup-linaria-template/styles.css";