add favicon
This commit is contained in:
@@ -18,6 +18,10 @@ export const assetsPath = (...pathInSrc) => (
|
||||
relativePath('assets', ...pathInSrc)
|
||||
);
|
||||
|
||||
export const faviconPath = (...pathInSrc) => (
|
||||
relativePath('assets/favicon.ico', ...pathInSrc)
|
||||
);
|
||||
|
||||
export const jsPath = (...pathInSrc) => (
|
||||
relativePath('js', ...pathInSrc)
|
||||
);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { copy } from 'fs-extra';
|
||||
import {
|
||||
assetsPath,
|
||||
faviconPath,
|
||||
distPath,
|
||||
} from '../common/file';
|
||||
|
||||
@@ -10,3 +11,10 @@ copy(assetsPath(), distPath('assets'), (err) => {
|
||||
}
|
||||
console.log("copied assets");
|
||||
});
|
||||
|
||||
copy(faviconPath(),distPath('favicon.ico'),(err) => {
|
||||
if (err) {
|
||||
return console.error(err);
|
||||
}
|
||||
console.log("copied favicon");
|
||||
});
|
||||
Reference in New Issue
Block a user