Skip to content

Instantly share code, notes, and snippets.

@jepster
Created July 31, 2015 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jepster/599df595726854ab8bcb to your computer and use it in GitHub Desktop.
Save jepster/599df595726854ab8bcb to your computer and use it in GitHub Desktop.
<?php
namespace app\modules\MY-MODULE\assets;
use yii\web\AssetBundle;
class MyModuleAsset extends AssetBundle
{
// the alias to your assets folder in your file system
public $sourcePath = '@yiipass-assets';
// finally your files..
public $css = [
'css/first-css-file.css',
'css/second-css-file.css',
];
public $js = [
'js/first-js-file.js',
'js/second-js-file.js',
];
// that are the dependecies, for makeing your Asset bundle work with Yii2 framework
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment