Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Using locally

Juan Lulkin edited this page Aug 17, 2016 · 1 revision

Most of the time you'll want to change things in ui and see how they reflect in your project. To do that without having to push and publish versions, you need to create a global symlink from ui and then use this symlink in your project.

So first, create the global symlink by doing:

cd path/to/ui
npm link

Then go to your project and:

npm link @klarna/ui
UV_THREADPOOL_SIZE=100 npm start

This uses the global symlink of ui-react-components that points to our local git copy. Replace npm start with the command you use to start your app, if you use something different.

The UV_THREADPOOL_SIZE=100 solves a problem you may encounter with symlinks when importing Sass files https://github.com/jtangelder/sass-loader/issues/100.