1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
return [ |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
|-------------------------------------------------------------------------- |
7
|
|
|
| Paths |
8
|
|
|
|-------------------------------------------------------------------------- |
9
|
|
|
| |
10
|
|
|
| Add additional path prefixes for the asset manager here. You may also |
11
|
|
|
| add prefixes for domains like a CDN. |
12
|
|
|
| |
13
|
|
|
| Later you can access assets in the path like: |
14
|
|
|
| |
15
|
|
|
| $asset->add('collection.css', 'example::path/to/asset.css'); |
16
|
|
|
| |
17
|
|
|
*/ |
18
|
|
|
|
19
|
|
|
'paths' => [ |
20
|
|
|
//'example' => 'some/local/path', |
|
|
|
|
21
|
|
|
//'s3' => 'https://region.amazonaws.com/bucket' |
22
|
|
|
], |
23
|
|
|
|
24
|
|
|
/* |
25
|
|
|
|-------------------------------------------------------------------------- |
26
|
|
|
| Hints |
27
|
|
|
|-------------------------------------------------------------------------- |
28
|
|
|
| |
29
|
|
|
| Hints help the system interpret the correct |
30
|
|
|
| output file extension to use for syntax / languages |
31
|
|
|
| that need to be compiled to a standard language. |
32
|
|
|
| |
33
|
|
|
*/ |
34
|
|
|
|
35
|
|
|
'hints' => [ |
36
|
|
|
'css' => [ |
37
|
|
|
'less', |
38
|
|
|
'scss', |
39
|
|
|
'sass', |
40
|
|
|
'styl', |
41
|
|
|
], |
42
|
|
|
'js' => [ |
43
|
|
|
'coffee', |
44
|
|
|
], |
45
|
|
|
], |
46
|
|
|
|
47
|
|
|
/* |
|
|
|
|
48
|
|
|
|-------------------------------------------------------------------------- |
49
|
|
|
| Filters |
50
|
|
|
|-------------------------------------------------------------------------- |
51
|
|
|
| |
52
|
|
|
| LESS: "php" or "node" |
53
|
|
|
| SCSS: "php" or "ruby" |
54
|
|
|
| |
55
|
|
|
*/ |
56
|
|
|
|
57
|
|
|
'filters' => [ |
58
|
|
|
'less' => env('LESS_COMPILER', 'php'), |
59
|
|
|
'sass' => env('SASS_COMPILER', 'php'), |
60
|
|
|
], |
61
|
|
|
|
62
|
|
|
/* |
63
|
|
|
|-------------------------------------------------------------------------- |
64
|
|
|
| Live |
65
|
|
|
|-------------------------------------------------------------------------- |
66
|
|
|
| |
67
|
|
|
| Define which assets marked live are to be compiled. |
68
|
|
|
| |
69
|
|
|
| true: Assets request for both the CP and frontend. |
70
|
|
|
| public: Assets requested ONLY by the frontend. |
71
|
|
|
| admin: Assets requested ONLY by the CP. |
72
|
|
|
| |
73
|
|
|
*/ |
74
|
|
|
|
75
|
|
|
'live' => env('LIVE_ASSETS', false), |
76
|
|
|
|
77
|
|
|
/* |
78
|
|
|
|-------------------------------------------------------------------------- |
79
|
|
|
| Version Assets |
80
|
|
|
|-------------------------------------------------------------------------- |
81
|
|
|
| |
82
|
|
|
| This will cause asset changes to version by default. |
83
|
|
|
| |
84
|
|
|
| <link href="example/theme.css?v=1484943345" type="text/css"/> |
85
|
|
|
| |
86
|
|
|
*/ |
87
|
|
|
|
88
|
|
|
'version' => env('VERSION_ASSETS', true), |
89
|
|
|
]; |
90
|
|
|
|
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.