Font-Awesome/index.js
JD Isaacks cf43e98c0b Create index.js
Allow getting include paths from within node so can be used in build tools
2015-10-15 23:46:04 -04:00

29 lines
564 B
JavaScript

var path = require('path');
var entryPoint = require.resolve('font-awesome');
var faDir = path.dirname(entryPoint);
var sassDir = path.join(faDir, 'scss');
var lessDir = path.join(faDir, 'less');
var cssDir = path.join(faDir, 'css');
var fontDir = path.join(faDir, 'fonts', '*');
function includePaths() {
return {
scss: sassDir,
less: sassDir,
css: cssDir,
fonts: fontDir
}
}
module.exports = {
scssPath: includePaths().scss,
lessPath: includePaths().less,
cssPath: includePaths().css,
fontPath: includePaths().fonts,
};