Skip to content

Commit

Permalink
slugify copied files by default #447
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jul 24, 2023
1 parent f198682 commit ba32ae9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
## `jsx` Plugin

- Removed `window.React` #332.

## `slugify_urls` Plugin

- Slugify static files by default. #447
2 changes: 1 addition & 1 deletion plugins/slugify_urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Options {

// Default options
export const defaults: Options = {
extensions: [".html"],
extensions: "*",
lowercase: true,
alphanumeric: true,
separator: "-",
Expand Down
8 changes: 7 additions & 1 deletion tests/__snapshots__/slugify_urls.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ snapshot[`slugify_urls plugin 2`] = `
{
entry: "/UI Styles.css",
flags: [],
outputPath: "/UI Styles.css",
outputPath: "/ui-styles.css",
},
]
`;
Expand Down Expand Up @@ -349,6 +349,12 @@ snapshot[`slugify_urls plugin (static files) 1`] = `
includesPath: "_includes",
pageLoader: [AsyncFunction: text],
},
{
dataLoader: [AsyncFunction: toml],
engines: undefined,
ext: ".toml",
pageLoader: [AsyncFunction: toml],
},
{
dataLoader: [AsyncFunction: yaml],
engines: undefined,
Expand Down

0 comments on commit ba32ae9

Please sign in to comment.