Hello everyone,
I’ve a localhost server in which i run my advanced application in DEV mode, and a remote server with a PROD mode.
To write css I use less converter ‘nizsheanez\assetConverter\Converter’ and in common/main.php I have this config:
'assetManager' => [
'linkAssets' => true,
'bundles' => [
'yii\web\JqueryAsset' => [
'js' => [YII_ENV_DEV ? 'jquery.js' : 'jquery.min.js'],
]
],
'converter' => [
'class' => 'nizsheanez\assetConverter\Converter',
'destinationDir' => 'css',
'parsers' => [
'less' => [ // file extension to parse
'class' => 'nizsheanez\assetConverter\Less',
'output' => 'css', // parsed output file type
'options' => [
'auto' => true, // optional options
]
],
],
],
],
Now, when I change a less file in the web/css directory it faithfully updates them on my localhost directory, but when i upload a compiled .less, .js, .css or any asset file to the remote server, it won’t change.
to let you understand, see the attached screenshot
How can I make my asset files up-to-date?
Thank you all in advance.