Skip to content

Commit

Permalink
Updated readme/ changelog for 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCampionJr committed Feb 4, 2022
1 parent b3af6c8 commit 603cfa9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this project will be documented in this file.

## [0.6.0] - 2022-02-04

### Added

- Added extensions option - [@deathpresence](https://github.com/deathpresence)
- Added multiple layout dirs (closed #45) - [@domsen123](https://github.com/domsen123)

**Breaking Change**
`layoutsDir` option is now called `layoutsDirs`

### Fixed

- Fixed ESM imports (closed #50) - [@josh-hemphill](https://github.com/josh-hemphill)

## [0.5.0] - 2021-09-21

### Added
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If you want type definition of `virtual:generated-layouts`, add `vite-plugin-vue

```ts
interface UserOptions {
layoutsDir?: string
layoutsDirs?: string | string[]
exclude: string[]
defaultLayout?: string
}
Expand All @@ -90,18 +90,20 @@ import Layouts from 'vite-plugin-vue-layouts';
export default {
plugins: [
Layouts({
layoutsDir: 'src/mylayouts',
layoutsDirs: 'src/mylayouts',
defaultLayout: 'myDefault'
}),
],
};
```

### layoutsDir
### layoutsDirs

Relative path to the layouts directory. Supports globs.
All .vue files in this folder are imported async into the generated code.

Can also be an array of layout dirs

Any files named `__*__.vue` will be excluded, and you can specify any additional exclusions with the `exclude` option

**Default:** `'src/layouts'`
Expand Down

0 comments on commit 603cfa9

Please sign in to comment.