Skip to content

Commit

Permalink
clarify npm install method (#5934)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjacobsen authored Sep 21, 2024
1 parent 48ee8cc commit 57ab896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/asset_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you want to import JavaScript dependencies, you have at least three options t
import topbar from "../vendor/topbar"
```

2. Call `npm install topbar --save` inside your assets directory and `esbuild` will be able to automatically pick them up:
2. Call `npm install topbar --prefix assets` will create `package.json` and `package-lock.json` inside your assets directory and `esbuild` will be able to automatically pick them up:

```js
import topbar from "topbar"
Expand Down

0 comments on commit 57ab896

Please sign in to comment.