copiar .js

This commit is contained in:
Cat /dev/Nulo 2023-01-19 22:38:49 -03:00
parent 62726f7225
commit 29b6bb4906
1 changed files with 11 additions and 3 deletions

View File

@ -62,9 +62,17 @@ await compilePageList(config, pageList);
async function compileFile(name: string) {
const extension = extname(name);
if (
[".ts", ".md", ".css", ".png", ".jpg", ".mp4", ".svg", ".html"].includes(
extension
)
[
".ts",
".md",
".css",
".js",
".png",
".jpg",
".mp4",
".svg",
".html",
].includes(extension)
) {
await copyFile(join(config.sourcePath, name), join(config.buildPath, name));
}