You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPD:
Workaround for keeping all details in your asset bundle:
...
class NewsAsset extends AssetBundle {
public $css = [
'news.css',
];
/** @inheritdoc */
public static function register($view) {
$view->registerJsFile('https://platform.twitter.com/widgets.js');
return parent::register($view);
}
}
With this approach, news.css will be minified, but widgets.js will only register on the page(without any compressing).
It covers my case - I don't want to minify external source(widgets.js), but I want to register this js file on my page.
I already checked all related issues but it doesn't work.
What steps will reproduce the problem?
My asset bundles:
Using
asset
command and the config:What is the expected result?
assets-prod.php
What do you get instead?
Additional info
The text was updated successfully, but these errors were encountered: