gregnb / filemanager-webpack-plugin

Copy, move, archive (zip/tar/tar.gz), delete files and directories before and after Webpack builds. Win32/Mac/*Nix supported
MIT License
463 stars 34 forks source link

Unable to move or copy file. No such file exists #96

Closed mad-gav closed 3 years ago

mad-gav commented 3 years ago

Config

new FileManagerPlugin({
  events: {
    onEnd: {
      move: [
        { source: '/dist/screen.css', destination: '/dist/styles/screen.css' },
      ],
    },
  },
}),

Issue

get an error

FileManagerPlugin] unable to move /dist/screen.css, Error: ENOENT: no such file or directory, stat '/dist/screen.css'

screen.css gets put into the root of /dist in the webpack build image

Your Environment

Tech Version
filemanager-plugin-webpack 4.0.0
node 12.16.3
OS OS X catalina

have tried

/dist ./dist

sibiraj-s commented 3 years ago

Hey @mad-gav. I totally missed this one. I hope the issue is resolved.

Reopen if the issue still persists.