mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-13 08:40:28 +08:00
cf43e98c0b
Allow getting include paths from within node so can be used in build tools
29 lines
564 B
JavaScript
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,
|
|
|
|
};
|