CustomAsset.php 654 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. namespace fecadmin\myassets;
  10. use yii\web\AssetBundle;
  11. /**
  12. * @author Terry Zhao <2358269014@qq.com>
  13. * @since 1.0
  14. */
  15. class CustomAsset extends AssetBundle
  16. {
  17. public $sourcePath = '@fecadmin/myassets/custom';
  18. //public $cssOptions = ['condition' => 'lte IE9'];
  19. public $css = [
  20. 'css/style.css',
  21. ];
  22. public $jsOptions = [ 'position' => \yii\web\View::POS_HEAD ];
  23. public $js = [
  24. 'js/js.js',
  25. ];
  26. public $depends = [
  27. ];
  28. }