feat(assets): new assets loading system (currently only for images)
This commit is contained in:
@@ -13,7 +13,10 @@ export default defineNuxtModule({
|
||||
async setup(_, nuxt) {
|
||||
const logger = useLogger("content-assets");
|
||||
const contentDir = join(nuxt.options.rootDir, "content");
|
||||
const publicDir = join(nuxt.options.rootDir, "public/images/projects");
|
||||
const publicDir = join(
|
||||
nuxt.options.rootDir,
|
||||
"public/images/projects/pokemons",
|
||||
);
|
||||
|
||||
const getFileChecksum = async (filePath: string): Promise<string> => {
|
||||
const content = await readFile(filePath);
|
||||
|
||||
Reference in New Issue
Block a user