Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
victortotem committed May 27, 2021
1 parent b73841f commit 27f623c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ npm install -D nuxt-assets-paths

First, register the module in the `nuxt.config.[js|ts]`

```javascript
```js
const config = {
...,
modules: [
Expand All @@ -39,7 +39,7 @@ const config = {

In your nuxt.config

```javascript
```js
import 'nuxt-assets-paths';

export default {
Expand Down Expand Up @@ -72,6 +72,18 @@ export interface NuxtAssetsPathsOptions {
}
```

Exemple:

```javascript
import 'nuxt-assets-paths';

export default {
assetsPaths: {
filePath: 'src/models/__assetsPaths.ts',
},
};
```

# Usage in Vue/Nuxt

## - `assetsPaths` global object
Expand Down

0 comments on commit 27f623c

Please sign in to comment.