change prefix

quicker-redirects
Nayan Gautam 1 year ago
parent 4e8e4d9097
commit 0f9b706eb1

@ -1,5 +1,5 @@
// @ts-expect-error custom suffix doesn't have types
import js from 'minified-raw:./redirect.js';
// @ts-ignore custom suffix doesn't have types and cba to add them just for this
import js from 'virtual:minified-raw:./redirect.js';
// avoid outputting a file named "docs" that would conflict with prerendered "docs" directory
export const prerender = false;

@ -22,7 +22,7 @@ function raw(ext) {
/** @returns {import('vite').Plugin} */
function minified_raw_plugin() {
const prefix = 'minified-raw:';
const prefix = 'virtual:minified-raw:';
return {
name: 'minified-raw-js',

Loading…
Cancel
Save