add favicon

This commit is contained in:
Daniel Pötzinger
2017-04-01 22:26:34 +02:00
parent 4e1ff8670a
commit 925daf6eab
2 changed files with 12 additions and 0 deletions

View File

@@ -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)
);

View File

@@ -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");
});