Skip to content

Commit

Permalink
chore: code review - small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Avivbens committed Aug 15, 2024
1 parent b998da3 commit b1cd7a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/app/setup/bundler-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ module.exports = {

## `rootAssets`

By default, `fast-alfred` would bundle the a few files from the root of the project, like the `package.json` and the `README.md`.
you can add more assets to be bundled by adding paths into the `rootAssets` property.
By default, `fast-alfred` would bundle a few files from the root of the project, like the `package.json` and the `README.md`.
You can add more assets to be bundled at the root, instead of the `assets` directory, by adding paths to the `rootAssets` property.

##### Example

Expand Down
2 changes: 1 addition & 1 deletion src/bundler/constants/bundler-options-defaults.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ globalThis.__dirname = _private_path.dirname(__filename);
` as const

export const PACK_ENTITIES = (targetDir: string, rootAssets: string[]) =>
['*.png ', '*.plist', 'README.md', `${targetDir}/**`, 'package.json', `"${rootAssets}"`] as const
['*.png ', '*.plist', 'README.md', `${targetDir}/**`, 'package.json'].concat(rootAssets.map((a) => `"${a}"`))

0 comments on commit b1cd7a5

Please sign in to comment.