module.exports={
plugins:[newCopyPlugin({
patterns:['relative/path/to/file.ext','relative/path/to/dir',
path.resolve(__dirname,'src','file.ext'),
path.resolve(__dirname,'src','dir'),'**/*',{from:'**/*',},// If absolute path is a `glob` we replace backslashes with forward slashes, because only forward slashes can be used in the `glob`
path.posix.join(
path.resolve(__dirname,'src').replace(/\\/g,'/'),'*.txt'),],}),],};