Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #376

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,29 @@ $ npm install --save vue-toastification@next

### Plugin registration

#### Nuxt 3 Process
Register plugin inside `plugins/toast.js` directory.
```javascript
// toast.js
import Toast from "vue-toastification";
import "vue-toastification/dist/index.css";

export default defineNuxtPlugin(nuxtApp => {
nuxtApp.vueApp.use(Toast, {
hideProgressBar : true
});
})
```
**Transpile** plugin since it is old package to solve issue of **Commonjs** issue
```js
// nuxt.config.js
build:{
// vue-toastification - old commonjs module
transpile: ['vue-toastification'],
},
```
-------
#### Vue Process
Add it as a plugin to your app:
```javascript
import { createApp } from "vue";
Expand Down