Skip to content

Commit

Permalink
馃殌 chore(package.json): update package version to 0.2.4
Browse files Browse the repository at this point in the history
馃摑 docs(readme.md): add instructions to create and fill .env file for AWS credentials
  • Loading branch information
ferdiunal committed Apr 18, 2023
1 parent 1d129d1 commit 22cf13b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-cdn-uploader",
"version": "0.2.3",
"version": "0.2.4",
"description": "A Vite plugin to upload built files to various CDN providers",
"main": "dist/index.js",
"scripts": {
Expand Down
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ First, import the plugin in your Vite configuration file:
import { cdnUploaderPlugin, providers } from "vite-cdn-uploader"
```

If your project does not have an `.env` file yet:

```bash
touch .env
```

Then, add the following content to your `.env` file:

```ini
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=
```

Then, add the plugin to the `plugins` array in your Vite configuration:

```javascript
Expand Down

0 comments on commit 22cf13b

Please sign in to comment.