Skip to content

Commit

Permalink
copy output dist
Browse files Browse the repository at this point in the history
  • Loading branch information
master1lan committed Feb 14, 2023
1 parent 2f2f58b commit 068f642
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import fs from "fs";

fs.cp(
"./dist/eoefans-web/assets",
"./dist/assets",
{ recursive: true },
(err) => {
console.log(err);
}
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && vite build && node build.js",
"preview": "vite preview",
"localdev": "vite --host 192.168.2.250"
},
Expand Down

0 comments on commit 068f642

Please sign in to comment.