Skip to content

Commit

Permalink
Fix: Support backward-compatible URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Jan 21, 2024
1 parent b560f0e commit 3fb5e5a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The goal of this empty directory is to maintain backward-compatibility with old URLs. For example:

* `pixijs.io/filters/demo` => `pixijs.io/filters/examples`
* `filters.pixijs.download/main/demo/index.html` => `filters.pixijs.download/main/examples/index.html`
13 changes: 13 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PixiJS Filters - Redirecting...</title>
</head>
<body>
<!-- Backward-compatible link to examples -->
<script>
window.location.href = '../examples/index.html' + window.location.search;
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
"examples",
"scripts"
],
"deployFiles": "{dist,screenshots,examples,docs}/**",
"deployFiles": "{dist,screenshots,examples,docs,demo}/**",
"moduleSource": "src/{,*/}index.ts"
}
}

0 comments on commit 3fb5e5a

Please sign in to comment.