-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented preserve_file_names config (#4742)
* Update module-collection.ts - add preserveFileNames to legacy Added the preserveFileNames option to legacy rules * Update environment.ts - added preserve_file_names * Update deploy.ts - added config.preserve_file_names Added option config.preserve_file_names to moduleCollector * Update validation.ts - added preserve_file_names * Fixed formatting issues * Preserve file name tests * Add changeset * do not pass whole path to filename --------- Co-authored-by: Beny <ben@beny.pro> Co-authored-by: Peter Bacon Darwin <pbacondarwin@cloudflare.com>
- Loading branch information
1 parent
64236b0
commit c2f3f1e
Showing
6 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"wrangler": minor | ||
--- | ||
|
||
feat: allow preserving file names when defining rules for non-js modules | ||
|
||
The developer is now able to specify the `preserve_file_names property in wrangler.toml | ||
which specifies whether Wrangler will preserve the file names additional modules that are | ||
added to the deployment bundle of a Worker. | ||
|
||
If not set to true, files will be named using the pattern ${fileHash}-${basename}. | ||
For example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`. | ||
|
||
Resolves [#4741](https://github.com/cloudflare/workers-sdk/issues/4741) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters