20 lines
382 B
JavaScript
20 lines
382 B
JavaScript
import { copy } from 'fs-extra';
|
|
import {
|
|
assetsPath,
|
|
faviconPath,
|
|
distPath,
|
|
} from '../common/file';
|
|
|
|
copy(assetsPath(), distPath('assets'), (err) => {
|
|
if (err) {
|
|
return console.error(err);
|
|
}
|
|
console.log("copied assets");
|
|
});
|
|
|
|
copy(faviconPath(),distPath('favicon.ico'),(err) => {
|
|
if (err) {
|
|
return console.error(err);
|
|
}
|
|
console.log("copied favicon");
|
|
}); |