Open tecnologiaterabyte opened 9 years ago
have you tried it with a wildcard *
?
public $publishOptions = [
'only' => [
'fonts/*',
'css/*',
]
];
works part, correctly published the requested subdirectories, but also all the empty subdirectory.
Create Subdirectory css y fonts Asset Publish Correct.
Error:
Create subdirectory less y scss unsolicited.
Thks,
@cebe work fine with except option, please update docs.
namespace cjtterabytesoft\adminlte\basic\assets\bower;
use yii\web\AssetBundle;
class FontAwesomeAsset extends AssetBundle
{
public $sourcePath = '@vendor/bower/font-awesome/';
public $css = [
'css/font-awesome.css',
];
public $publishOptions = [
'only' => [
'fonts/*',
'css/*',
],
'except' => [
'less',
'scss',
]
];
}
publishOptions
does not work for me neither
class SemanticAsset extends \yii\web\AssetBundle
{
public $sourcePath = '@bower/semantic-ui/dist/';
public $css = [
'semantic.min.css',
];
public $js = [
'semantic.min.js'
];
public $publishOptions = [
'except' => [
'components/'
]
];
}
Yet the components
directory is being published (Windows)
Hi, my composer:
My Example Assets:
Debug Assets:
Problem:
1.- Copy all subdirectory:
2.- Copy empty subdirectories: