generated from template/astro-simple-template
Initial commit
This commit is contained in:
12
src/modules/basename.ts
Normal file
12
src/modules/basename.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// @ts-ignore
|
||||
export const basename = BASE_NAME;
|
||||
|
||||
console.log(basename);
|
||||
|
||||
export const wrapBasename = (path: string) => {
|
||||
if (basename) {
|
||||
return `${basename}${path}/`;
|
||||
} else {
|
||||
return path;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user