fix(element): Enable SPA fallback in element dev server
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-12-08 - 2.3.1 - fix(element)
|
||||||
|
Enable SPA fallback in element dev server
|
||||||
|
|
||||||
|
- Add spaFallback: true to the TypedServer configuration used in element mode.
|
||||||
|
- Improves developer experience for single-page apps by serving the index file for unknown routes during development and supporting client-side routing.
|
||||||
|
|
||||||
## 2025-12-08 - 2.3.0 - feat(typedserver)
|
## 2025-12-08 - 2.3.0 - feat(typedserver)
|
||||||
Enable compression for element development server and update @api.global/typedserver dependency
|
Enable compression for element development server and update @api.global/typedserver dependency
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tswatch',
|
name: '@git.zone/tswatch',
|
||||||
version: '2.3.0',
|
version: '2.3.1',
|
||||||
description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.'
|
description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ export class TsWatch {
|
|||||||
serveDir: plugins.path.join(paths.cwd, './dist_watch/'),
|
serveDir: plugins.path.join(paths.cwd, './dist_watch/'),
|
||||||
port: 3002,
|
port: 3002,
|
||||||
compression: true,
|
compression: true,
|
||||||
|
spaFallback: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const bundleAndReloadElement = async () => {
|
const bundleAndReloadElement = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user