Skip to content

Commit

Permalink
No need for relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 3, 2024
1 parent 0695e1d commit 4a81229
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions guides/asset_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,13 @@ If you want to import JavaScript dependencies, you have at least three options t

```elixir
# mix.exs
{:topbar,
github: "buunguyen/topbar",
app: false,
compile: false}
{:topbar, github: "buunguyen/topbar", app: false, compile: false}
```

Run `mix deps.get` to fetch the dependency and then import it:

```js
import topbar from "../../deps/topbar"
import topbar from "topbar"
```

New applications use this third approach to import Heroicons, avoiding
Expand Down

0 comments on commit 4a81229

Please sign in to comment.