fix redirect when map url is present
This commit is contained in:
parent
2d8fa591cf
commit
b1d9e603b8
@ -40,6 +40,7 @@
|
|||||||
"tsconfig-paths": "^3.9.0",
|
"tsconfig-paths": "^3.9.0",
|
||||||
"typescript": "^4.5.3",
|
"typescript": "^4.5.3",
|
||||||
"vite": "^2.7.13",
|
"vite": "^2.7.13",
|
||||||
|
"vite-plugin-rewrite-all": "^0.1.2",
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"webpack-cli": "^4.7.0",
|
"webpack-cli": "^4.7.0",
|
||||||
"webpack-dev-server": "^3.11.2"
|
"webpack-dev-server": "^3.11.2"
|
||||||
|
@ -2,6 +2,7 @@ import { defineConfig } from "vite";
|
|||||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||||
import { envConfig } from "@geprog/vite-plugin-env-config";
|
import { envConfig } from "@geprog/vite-plugin-env-config";
|
||||||
import sveltePreprocess from "svelte-preprocess";
|
import sveltePreprocess from "svelte-preprocess";
|
||||||
|
import pluginRewriteAll from 'vite-plugin-rewrite-all';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
@ -44,5 +45,6 @@ export default defineConfig({
|
|||||||
"FALLBACK_LOCALE",
|
"FALLBACK_LOCALE",
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
pluginRewriteAll(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
@ -6989,6 +6989,13 @@ vary@~1.1.2:
|
|||||||
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
|
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
|
||||||
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
|
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
|
||||||
|
|
||||||
|
vite-plugin-rewrite-all@^0.1.2:
|
||||||
|
version "0.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/vite-plugin-rewrite-all/-/vite-plugin-rewrite-all-0.1.2.tgz#312bbcd76c700ceac5153bfc5ad7e3e3e4bc9606"
|
||||||
|
integrity sha512-hBFuG043kbixgZ/ke9SzKhkO6P8a5ryxD0CmZTe+/Cz17RIKi7uSeNUJy79V4FgavZ7pWVRg0tqVwJ7lP/A2/Q==
|
||||||
|
dependencies:
|
||||||
|
connect-history-api-fallback "^1.6.0"
|
||||||
|
|
||||||
vite@^2.7.13:
|
vite@^2.7.13:
|
||||||
version "2.7.13"
|
version "2.7.13"
|
||||||
resolved "https://registry.yarnpkg.com/vite/-/vite-2.7.13.tgz#99b56e27dfb1e4399e407cf94648f5c7fb9d77f5"
|
resolved "https://registry.yarnpkg.com/vite/-/vite-2.7.13.tgz#99b56e27dfb1e4399e407cf94648f5c7fb9d77f5"
|
||||||
|
Loading…
Reference in New Issue
Block a user