mirror of
https://github.com/flarum/core.git
synced 2025-07-21 00:31:17 +02:00
Use smaller FontAwesome shim repo instead of original
components/font-awesome is ~8 MB smaller than fortawesome/font-awesome because it excludes all examples/docs. Reducing dependency filesize will be important when we want to package up a .zip for distribution.
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
"dflydev/fig-cookies": "^1.0.2",
|
"dflydev/fig-cookies": "^1.0.2",
|
||||||
"doctrine/dbal": "^2.5",
|
"doctrine/dbal": "^2.5",
|
||||||
"fortawesome/font-awesome": "^4.6",
|
"components/font-awesome": "^4.6",
|
||||||
"franzl/whoops-middleware": "^0.4.0",
|
"franzl/whoops-middleware": "^0.4.0",
|
||||||
"illuminate/bus": "5.1.*",
|
"illuminate/bus": "5.1.*",
|
||||||
"illuminate/cache": "5.1.*",
|
"illuminate/cache": "5.1.*",
|
||||||
|
@@ -48,7 +48,7 @@ class LessCompiler extends RevisionCompiler
|
|||||||
'compress' => true,
|
'compress' => true,
|
||||||
'cache_dir' => $this->cachePath,
|
'cache_dir' => $this->cachePath,
|
||||||
'import_dirs' => [
|
'import_dirs' => [
|
||||||
base_path().'/vendor/fortawesome/font-awesome/less' => '',
|
base_path().'/vendor/components/font-awesome/less' => '',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@@ -357,7 +357,7 @@ class InstallCommand extends AbstractCommand
|
|||||||
protected function publishAssets()
|
protected function publishAssets()
|
||||||
{
|
{
|
||||||
$this->filesystem->copyDirectory(
|
$this->filesystem->copyDirectory(
|
||||||
$this->application->basePath().'/vendor/fortawesome/font-awesome/fonts',
|
$this->application->basePath().'/vendor/components/font-awesome/fonts',
|
||||||
$this->application->publicPath().'/assets/fonts'
|
$this->application->publicPath().'/assets/fonts'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user