copiar .js
This commit is contained in:
parent
62726f7225
commit
29b6bb4906
1 changed files with 11 additions and 3 deletions
14
compilar.ts
14
compilar.ts
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue