Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow braced sections #88

Closed
monolithed opened this issue Nov 4, 2016 · 1 comment
Closed

Allow braced sections #88

monolithed opened this issue Nov 4, 2016 · 1 comment

Comments

@monolithed
Copy link

monolithed commented Nov 4, 2016

Actual

new CopyWebpackPlugin([
	{
		from: 'file1'
	},

	{
		from: 'file2'
	},
	{
		from: 'dir/'
	}
])

Expected

new CopyWebpackPlugin([
	{
		from: '{file1,file2,dir/}'
	}
])

The current error:

ERROR in [copy-webpack-plugin] unable to locate './{file1,file2}' at '/{file1,file2}'

I've already tried the glob option, but it does not work as well #87

@monolithed monolithed changed the title Allow standard {} syntax Allow braced sections Nov 4, 2016
@kevlened
Copy link
Contributor

This is a bug. Here's a workaround:

new CopyWebpackPlugin([
    {
        from: '{file1,file2,dir/}',
        fromType: 'glob'
    }
])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants