copiar .js

This commit is contained in:
Cat /dev/Nulo 2023-01-19 22:38:49 -03:00
parent 62726f7225
commit 29b6bb4906

View file

@ -62,9 +62,17 @@ await compilePageList(config, pageList);
async function compileFile(name: string) { async function compileFile(name: string) {
const extension = extname(name); const extension = extname(name);
if ( 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)); await copyFile(join(config.sourcePath, name), join(config.buildPath, name));
} }