Using Webpack and copy-webpack-plugin I need to copy an entire folder during build and I have:
plugins: [
new CopyPlugin({
patterns: [
{ from: './src/assets', to: './assets' }
]
})
]
However this fails when the assets
folder is empty:
ERROR: unable to locate ...
If I add one file to assets folder i will work.
How to solve this?
CopyWebpackPlugin
viaglobOptions/ignore
did not yield any file to copy. So not necessarily an empty folder. – Chough