This commit is contained in:
@@ -2,7 +2,7 @@ import { defineNuxtModule, useLogger } from "@nuxt/kit";
|
||||
import { readdir, readFile, writeFile } from "fs/promises";
|
||||
import { join, relative, parse } from "path";
|
||||
import { existsSync, watch } from "fs";
|
||||
import { execSync } from "child_process";
|
||||
// import { execSync } from "child_process";
|
||||
import sharp from "sharp";
|
||||
|
||||
type AtlasRect = {
|
||||
@@ -278,7 +278,7 @@ ${sp} }`;
|
||||
}
|
||||
};
|
||||
|
||||
nuxt.hook("build:before", generateAssets);
|
||||
await generateAssets();
|
||||
|
||||
if (nuxt.options.dev) {
|
||||
const watchAndRegenerate = (
|
||||
|
||||
Reference in New Issue
Block a user