1
0
mirror of https://github.com/flarum/core.git synced 2025-08-24 00:53:27 +02:00

Install FontAwesome via Composer.

This also updates the asset publishing and LESS paths accordingly.

Refs #891.
This commit is contained in:
Franz Liedke
2016-05-09 21:28:38 +09:00
parent eba782d48f
commit 619561cf56
16 changed files with 7 additions and 2078 deletions

View File

@@ -42,7 +42,10 @@ class LessCompiler extends RevisionCompiler
$parser = new Less_Parser([
'compress' => true,
'cache_dir' => $this->cachePath
'cache_dir' => $this->cachePath,
'import_dirs' => [
'vendor/fortawesome/font-awesome/less' => '',
],
]);
try {

View File

@@ -357,8 +357,8 @@ class InstallCommand extends AbstractCommand
protected function publishAssets()
{
$this->filesystem->copyDirectory(
__DIR__.'/../../../assets',
$this->application->publicPath().'/assets'
$this->application->basePath().'/vendor/fortawesome/font-awesome/fonts',
$this->application->publicPath().'/assets/fonts'
);
}