it manages my assets in modules, but not sure how to get it to manage my assets in web/images
, web/js
and web/
css`.
all my assets in modules are pushed to S3 just fine. except the ones in the directories i just mentioned.
this is what i have in my assetManager
'assetManager' => [
'forceCopy' => (YII_ENV == 'dev') ? true : false,
'appendTimestamp' => (YII_ENV == 'dev') ? false : true,
'bundles' => [
'yii\web\YiiAsset' => [
'sourcePath' => '@app/web/js',
'js' => (YII_ENV == 'dev') ? ['site.js'] : ['site.min.js'],
'jsOptions' => ['defer' => true],
'publishOptions' => [
'only' => (YII_ENV == 'dev') ? ['site.js'] : ['site.min.js']
]
],
'yii\widgets\ActiveFormAsset' => false,
'yii\validators\ValidationAsset' => false,
//override jQuery
'yii\web\JqueryAsset' => [
'js' => ['https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js'],
'jsOptions' => ['type' => 'text/javascript'],
],
'yii\bootstrap4\BootstrapAsset' => [
'sourcePath' => null, // do not publish the bundle
'css' => [
'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css'
],
],
'yii\bootstrap4\BootstrapPluginAsset' => [
'sourcePath' => null, // do not publish the bundle
'js' => [
'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js'
],
'jsOptions' => ['defer' => true],
],
],
],