Skip to content

Commit

Permalink
fix: include dotfiles in public assets (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 27, 2022
1 parent fd9d092 commit 8a744fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/plugins/public-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { virtual } from './virtual'
export function publicAssets (nitro: Nitro): Plugin {
const assets: Record<string, { type: string, etag: string, mtime: string, path: string }> = {}

const files = globbySync('**/*.*', { cwd: nitro.options.output.publicDir, absolute: false })
const files = globbySync('**/*.*', { cwd: nitro.options.output.publicDir, absolute: false, dot: true })

const publicAssetBases = nitro.options.publicAssets
.filter(dir => !dir.fallthrough && dir.baseURL !== '/')
Expand Down

0 comments on commit 8a744fb

Please sign in to comment.