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

Can't copy absolute source file if contains glob pattern #93

Closed RomanYegay closed 3 years ago

RomanYegay commented 3 years ago

Config

    new FileManagerPlugin({
        events: {
            onEnd: {
                copy: [
                    {
                        source: 'C:\\temp\\project\\dist\\bundle.{js,css}',
                        destination: ' some destination ',
                    },
                ],
            },
        },

Issue

Plugin can't copy absolute file names with glob pattern, i.e. source: '.\dist\bundle.{js,css}' will copy file, but source: 'C:\temp\project\dist\bundle.{js,css}' will not

Your Environment

Tech Version
filemanager-plugin-webpack 3.1.0
node 12.2.0
OS Windows10
sibiraj-s commented 3 years ago

Fixed in v3.1.1