File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 88 */
99
1010return [
11+
1112 /*
1213 |--------------------------------------------------------------------------
1314 | Routes
2829 | parameters filled out.) Make sure the request won't 404.
2930 |
3031 */
32+
3133 'routes ' => [
3234 // 'static/route', // In Blade: `@criticalCss('static/route')`
3335 // 'users/profile' => 'users/1', // In Blade: `@criticalCss('users/profile')`
4345 | The file is relative to the public path, i.e., `public_path($css)`.
4446 |
4547 */
48+
4649 'css ' => ['css/app.css ' , 'css/app2.css ' ],
4750
4851 /*
5356 | Width and height of the target viewport.
5457 |
5558 */
59+
5660 'width ' => 1300 ,
5761 'height ' => 900 ,
5862
6670 | @see https://github.com/bezoerb/filter-css
6771 |
6872 */
73+
6974 'ignore ' => [
7075 // Removes @font-face blocks
7176 // '@font-face',
8590 | The directory which the generated critical-path CSS is stored.
8691 |
8792 */
93+
8894 'storage ' => 'critical-css ' ,
8995
9096 /*
99105 | Remember to run `php artisan view:clear` after re-disabling this.
100106 |
101107 */
108+
102109 'pretend ' => env ('CRITICALCSS_PRETEND ' , false ),
103110
104111 /*
111118 | If your app is running on Laravel 5.0, this must be disabled.
112119 |
113120 */
121+
114122 'blade_directive ' => true ,
115123
116124 /*
123131 | installed globally, you may simply use 'critical'.
124132 |
125133 */
134+
126135 'critical_bin ' => base_path ('node_modules/.bin/critical ' ),
127136
128137];
You can’t perform that action at this time.
0 commit comments