You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -76,9 +76,24 @@ If you want to override the default arguments, you can do this by modifying your
76
76
]
77
77
```
78
78
79
-
## Debugging less compilation errors
79
+
You can also enable throwing an exception when the less compilation runs into warnings/errors, by default this is disabled and you should find the problems logged in your `var/log/system.log` file.
80
+
But if you want to enable throwing an exception during the compilation process, you can by configuring this in your `app/etc/config.php` or `app/etc/env.php` file:
80
81
81
-
When your `.less` files have a syntax error or contain something which doesn't allow it to compile properly, please have a look at the `var/log/system.log` file, it will contain the error what causes the problem.
82
+
```php
83
+
'system' => [
84
+
'default' => [
85
+
'dev' => [
86
+
'less_js_compiler' => [
87
+
'throw_on_error' => true,
88
+
]
89
+
]
90
+
]
91
+
]
92
+
```
93
+
94
+
## Investigating less compilation errors
95
+
96
+
When your `.less` files have a syntax error or contain something which doesn't allow it to compile properly, please have a look at the `var/log/system.log` file, it will contain some output about what caused the problem.
0 commit comments