Add shortcut to import 'openpgp/lightweight'
This commit is contained in:
parent
8457639004
commit
6516602d7b
|
@ -129,7 +129,7 @@ If you want to use the lightweight build (which is smaller, and lazily loads non
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import * as openpgp from 'openpgp/dist/lightweight/openpgp.min.mjs';
|
import * as openpgp from 'openpgp/lightweight';
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
4
lightweight/package.json
Normal file
4
lightweight/package.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"name": "openpgp-lightweight",
|
||||||
|
"main": "../dist/lightweight/openpgp.min.mjs"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user