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
Hello,
seems like this plugin can't create subfolders when it outputs files. It yelds the following error in console:
{ Error: ENOENT: no such file or directory, open 'C:\Web\Project\Content\Store\Critical\subhome.css'
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Web\\Project\\Content\\Store\\Critical\\subhome.css' }
If subfolders are yet there instead, it writes files correctly.
In the above snippet, "Store" folder is already present in filesystem, while "Critical" folder is not. Anyway the issue happens also when you set subfolders paths in scss files via "critical" at-rule.
If you switch to fs-extra instead of fs and outputFile in "writeCriticalFile" function instead of writeFile, everything works fine.
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
seems like this plugin can't create subfolders when it outputs files. It yelds the following error in console:
If subfolders are yet there instead, it writes files correctly.
This is my configuration:
and this is a snippet of my webpack configuration:
In the above snippet, "Store" folder is already present in filesystem, while "Critical" folder is not. Anyway the issue happens also when you set subfolders paths in scss files via "critical" at-rule.
If you switch to fs-extra instead of fs and outputFile in "writeCriticalFile" function instead of writeFile, everything works fine.
Thanks
The text was updated successfully, but these errors were encountered: