Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
0a8ac696
Commit
0a8ac696
authored
Apr 05, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated asset bundle dependencies
parent
dbe799b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
AppAsset.php
src/assets/AppAsset.php
+8
-7
No files found.
src/assets/AppAsset.php
View file @
0a8ac696
...
...
@@ -21,21 +21,22 @@ class AppAsset extends AssetBundle
{
public
$sourcePath
=
'@app/assets/web'
;
public
$js
=
[
'js/app.js'
,
];
public
$css
=
[
// Note: less files require a compiler (available by default on Phundament Docker images)
// use .css alternatively
#'less/app.less',
];
public
$js
=
[
'js/app.js'
,
];
// we recompile the less files from 'yii\bootstrap\BootstrapAsset' and include the css in app.css
// therefore we set bundle to false in application config
public
$depends
=
[
'yii\bootstrap\BootstrapAsset'
,
'yii\web\YiiAsset'
,
'yii\bootstrap\BootstrapPluginAsset'
,
// if we recompile the less files from 'yii\bootstrap\BootstrapAsset' and include the css in app.css
// we need set bundle to `false` in application config and remove the following line
'yii\bootstrap\BootstrapAsset'
,
];
public
function
init
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment