File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Config ;
4+
5+ /***
6+ *
7+ * This file contains example values to override or augment default library behavior.
8+ * Recommended usage:
9+ * 1. Copy the file to app/Config/Assets.php
10+ * 2. Set any override variables
11+ * 3. Add additional route-specific assets to $routes
12+ * 4. Remove any lines to fallback to defaults
13+ *
14+ ***/
15+
16+ class Assets extends \Codenom \Assets \Config \Assets
17+ {
18+ // Whether to continue instead of throwing exceptions
19+ public $ silent = true ;
20+
21+ // Extensions to use when auto-detecting assets
22+ public $ extensions = ['css ' , 'js ' ];
23+
24+ // Location of asset files in the filesystem
25+ public $ fileBase = FCPATH . 'assets/ ' ;
26+
27+ // Location of asset URLs
28+ public $ webBase = 'https://example.com/assets/ ' ;
29+
30+ // Starting directory for manifest publication
31+ public $ publishBase = ROOTPATH . 'vendor/ ' ;
32+
33+ // Additional paths to load per route
34+ // Relative to fileBase, no leading/trailing slashes
35+ public $ routes = [
36+ '' => [
37+ 'bootstrap/dist/css/bootstrap.min.css ' ,
38+ 'bootstrap/dist/js/bootstrap.bundle.min.js ' ,
39+ ],
40+ 'files/upload ' => [
41+ 'dropzone/ ' ,
42+ ],
43+ ];
44+ }
You can’t perform that action at this time.
0 commit comments