metalsmith-webpack icon indicating copy to clipboard operation
metalsmith-webpack copied to clipboard

Is there a way to provide a wildcard for the context?

Open jhyland87 opened this issue 8 years ago • 1 comments

I really like this plugin, it seems to work pretty well. I was wondering if theres a way to grab all the JS files in a specified directory? (Either /path/to/js/*.js or /path/to/js/*).

Thanks!

jhyland87 avatar Nov 22 '16 20:11 jhyland87

I don't really understand the question, but I think this is an issue for webpack itself rather than metalsmith-webpack

Maybe the webpack API has changed since v1, but the current api only uses context to specify a base path for your entry points, so you're specifying a directory rather than a file. If you want wildcards for entry points, I don't think metalsmith supports that.

leviwheatcroft avatar May 12 '17 23:05 leviwheatcroft