terence55 / themes-switch

Toolset for switch multiple themes in application based on webpack
54 stars 18 forks source link

Error: Rule can only have one resource source (provided resource and test + include + exclude) #3

Closed ltoussaint closed 5 years ago

ltoussaint commented 5 years ago

When a rule already use resource, we cannot add an exclude property but we need to add resource.exclude

I'll try a change and send a PR

terence55 commented 5 years ago

resource is just a wrapper of test/include/exclude, you can also write exclude in a rule directly without resource. But anyway it's a compatibility problem, I have fixed it in version 1.0.6, you can try it again.