Skip to content

Commit

Permalink
example: fix docs and env for Vite examples (#4018)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 22, 2022
1 parent 97c6507 commit 5353874
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/vue/README.md
Expand Up @@ -7,5 +7,6 @@ To run the example, from the root directory of this repo, run the following comm

```sh
corepack yarn install
corepack yarn build
corepack yarn workspace @uppy-example/vue2 dev
```
1 change: 1 addition & 0 deletions examples/vue3/README.md
Expand Up @@ -5,5 +5,6 @@ To run the example, from the root directory of this repo, run the following comm
```sh
cp .env.example .env
corepack yarn install
corepack yarn build
corepack yarn workspace @uppy-example/vue3 dev
```
4 changes: 4 additions & 0 deletions examples/vue3/vite.config.js
@@ -1,7 +1,11 @@
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

const ROOT = new URL('../../', import.meta.url)

// https://vitejs.dev/config/
export default defineConfig({
envDir: fileURLToPath(ROOT),
plugins: [vue()],
})

0 comments on commit 5353874

Please sign in to comment.