Skip to content

Commit c9df016

Browse files
committed
1.0.0-preview2
1 parent 213ffba commit c9df016

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ and the user's connection hasn't been compromised.
1818
`dotnet-unpkg` uses that metadata to discover the files in the package and download
1919
them right into your `wwwroot/lib` folder.
2020

21+
Sometimes the packages don't have a `dist` folder, in which case `dotnet unpkg` will download pretty much everything.
22+
2123
## Usage
2224

2325
Install the package into your project as a tool reference:
@@ -67,7 +69,13 @@ to redownload everything, and it remembers the version, too, so it won't sneakil
6769
upgrade you to jQuery 4.0 when you're not looking.
6870

6971
If you can get all your `wwwroot/lib` dependencies using `unpkg`, then you can add
70-
it to your `.gitignore` and save checking all those files in.
72+
it to your `.gitignore` and save checking all those files in. Just make sure the `unpkg.json` file is checked in.
73+
74+
Once you've got a package installed, the `restore` command will just use the info
75+
from `unpkg.json`, so if there are files you don't want you can edit it and remove
76+
them. Saving should be non-destructive. If you run `add` again for a package that
77+
is already in `unpkg.json`, it will be overwritten with whatever version it finds
78+
on the CDN.
7179

7280
### Integrity hashes
7381

@@ -98,6 +106,6 @@ file. You should use this in your `<script>` and `<link>` tags, like this:
98106
asp-fallback-test-value="absolute" />
99107
```
100108

101-
**Note to self** maybe could generate these tags, either as an extra command or
109+
**Note to self:** maybe generate these tags, either as an extra command or
102110
into another file somewhere?
103111

0 commit comments

Comments
 (0)