I was working on a project on a Windows machine, with the source code stored under C:\d\project, and upon trying to use this plugin, found that it was generating bad temp file paths along the lines of C:\Users\d\project\date-filename.css
To explore this a bit further, I then moved the project code to be located in C:\Users\username\d\project, which then started working - albeit with a still incorrect temp file location of C:\Users\username\AppData\d\project\date-filename.css (the temp path for Windows is C:\Users\username\AppData\Local\Temp)
I hadn't set the rootDir property in the plugin, so it was using process.cwd() with... Interesting results 🤦♂️
As part of playing around with this, I also found that Windows does not automatically clean up temp files, and the developer is expected to clean these files up themselves (ref: https://superuser.com/a/296827)
I was working on a project on a Windows machine, with the source code stored underC:\d\project
, and upon trying to use this plugin, found that it was generating bad temp file paths along the lines ofC:\Users\d\project\date-filename.css
To explore this a bit further, I then moved the project code to be located inC:\Users\username\d\project
, which then started working - albeit with a still incorrect temp file location ofC:\Users\username\AppData\d\project\date-filename.css
(the temp path for Windows isC:\Users\username\AppData\Local\Temp
)I hadn't set the
rootDir
property in the plugin, so it was usingprocess.cwd()
with... Interesting results 🤦♂️As part of playing around with this, I also found thatWindows does not automatically clean up temp files, and the developer is expected to clean these files up themselves (ref: https://superuser.com/a/296827)