diff --git a/package.json b/package.json index 0ece4da..17cddea 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/readme.md b/readme.md index e9ae760..2ef312d 100644 --- a/readme.md +++ b/readme.md @@ -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