metalsmith-webpack
metalsmith-webpack copied to clipboard
Error when using with metalsmith-changed
I am attempting to use this plugin with the metalsmith-changed plugin so that only the changed files are rebuilt. However, I get the following error:
if (error) throw error;
^
Error: Failed to write the file at: /assets/js/site.js
EACCES: permission denied, mkdir '/assets'
at Error (native)
It seems like the issue is that webpack attempts to create the assets folder even if it already exists, but if this is an error on my part please help me find out how to fix it.
This error was thrown because your node process tried to mkdir /assets
in your root filesystem, which of course it doesn't have permissions for.
The v2 branch completely refactors path handling, so I doubt this issue would apply to v2.