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:
@@ -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 {
|
||||
|
@@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user