Skip to content

Commit

Permalink
docs: Update angular.md (#261)
Browse files Browse the repository at this point in the history
No need to copy the partytown folder, we can point the assets to that folder instead
  • Loading branch information
bovandersteene committed Sep 23, 2022
1 parent 0a06db0 commit ca26d7c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/angular.md
Expand Up @@ -12,12 +12,6 @@ Run the command below to install the dependencies
npm install @builder.io/partytown # or yarn add @builder.io/partytown
```

Then run the command below to copy the Partytown JS files into your project

```bash
npx partytown copylib "src/~partytown/"
```

Add the path to the Partytown JS files into the assets array in your `angular.json` file


Expand All @@ -31,7 +25,13 @@ Add the path to the Partytown JS files into the assets array in your `angular.js
"build": {
...
"options": {
"assets": [..., "src/~partytown"]
"assets": [...,
{
"glob": "**/*",
"input": "node_modules/@builder.io/partytown/lib",
"output": "/~partytown"
}
]
}
}
}
Expand Down

1 comment on commit ca26d7c

@vercel
Copy link

@vercel vercel bot commented on ca26d7c Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.