Fatal error: UnCSS: could not open

666 Views Asked by At

I'm trying to remove all of the unused css in the framework I'm using by using uncss. But when I try I get the error:

file:///C:/Users/Angus/Desktop/FTTL%20website%20submit/index.html:15 in onload
Fatal error: UnCSS: could not open C:\Users\Angus\Desktop\FTTL website%20submit\css\main.css

Does anyone know why this is?

1

There are 1 best solutions below

0
On

Iyou forget to handle the first space properly (FTTL website%20submit) in the path, if you change the folder name or escape it properly (like FTTL%20website%20submit) it might work.

Edit: Or the other way around and the %20 substitution for the path was not working for the second space. (I am not familiar with uncss.)

(In my opinion it is best not using spaces in file and folder names.)