Skip to content

Commit

Permalink
[0.7.x] Add lang directories to default refresh paths (#135)
Browse files Browse the repository at this point in the history
* add lang directories to default refresh path

* fix tests
  • Loading branch information
fabio-ivona authored Sep 15, 2022
1 parent 41cc390 commit 627a3e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ let exitHandlersBound = false
export const refreshPaths = [
'app/View/Components/**',
'resources/views/**',
'resources/lang/**',
'lang/**',
'routes/**',
]

Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ describe('laravel-vite-plugin', () => {
expect(plugins.length).toBe(2)
/** @ts-ignore */
expect(plugins[1].__laravel_plugin_config).toEqual({
paths: ['app/View/Components/**', 'resources/views/**', 'routes/**'],
paths: ['app/View/Components/**', 'resources/views/**', 'resources/lang/**', 'lang/**', 'routes/**'],
})
})

Expand Down

0 comments on commit 627a3e8

Please sign in to comment.