Skip to content

Commit

Permalink
Update installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
PerBothner committed Jul 11, 2023
1 parent 40bef32 commit 5dfe64f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,25 @@ If you do want to use my fork, feel free to create an Issue or
email me if you need help - that may spur me to clean things up a bit.

## Installation

### From a git clone

```
npm install
npm run build:bundles
```

Copy the file `dist/bundle/esm/golden-layout.min.js` (if using EcmaScript modules, as recommended) or `dist/bundle/umd/golden-layout.min.js` (if using UMD modules) to a folder (for example `lib`) inside your application.
Import it from there, for example with:
```
import { GoldenLayout } from '../lib/golden-layout/golden-layout.min.js'
```
Also recursively copy the contents of `dist/css` to where you application can read them,

### Using npm

The library can be installed into an application package with the npm command:\
`npm i golden-layout`
`npm i golden-layout` However, this may get you a very old version.

## More information

Expand Down

0 comments on commit 5dfe64f

Please sign in to comment.