diff --git a/package.json b/package.json index 31c491b..54847f2 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "devDependencies": { "browserify": "14.3.0", "livereload": "0.6.2", + "ncp": "2.0.0", "node-sass": "4.5.2", "node-watch": "0.5.2", "uglifyify": "3.0.4" diff --git a/scripts/build.js b/scripts/build.js index 2c8abd7..29d8819 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -4,6 +4,7 @@ const path = require('path'); const watch = require('node-watch'); const browserify = require('browserify'); const livereload = require('livereload'); +const nsp = require('ncp').ncp; 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(); buildSCSS(); //