1
Fork 0

Copy fonts

This commit is contained in:
Jake Howard 2017-04-22 19:39:22 +01:00
parent 98815d65f1
commit 3dffd5fed0
2 changed files with 9 additions and 0 deletions

View file

@ -10,6 +10,7 @@
"devDependencies": { "devDependencies": {
"browserify": "14.3.0", "browserify": "14.3.0",
"livereload": "0.6.2", "livereload": "0.6.2",
"ncp": "2.0.0",
"node-sass": "4.5.2", "node-sass": "4.5.2",
"node-watch": "0.5.2", "node-watch": "0.5.2",
"uglifyify": "3.0.4" "uglifyify": "3.0.4"

View file

@ -4,6 +4,7 @@ const path = require('path');
const watch = require('node-watch'); const watch = require('node-watch');
const browserify = require('browserify'); const browserify = require('browserify');
const livereload = require('livereload'); const livereload = require('livereload');
const nsp = require('ncp').ncp;
const STATIC = path.join(__dirname, '..', 'static') const STATIC = path.join(__dirname, '..', 'static')
@ -47,6 +48,13 @@ const buildSCSS = function () {
}); });
} }
nsp('node_modules/font-awesome/fonts', path.join(STATIC, 'build', 'fonts'), function (err) {
if (err) {
return console.error(err);
}
console.log('Copied fonts');
});
bundle(); bundle();
buildSCSS(); buildSCSS();
// //