Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

[v0.6.0] Breaks option pass through (schema) #93

Closed
LarsOL opened this issue Oct 4, 2017 · 1 comment
Closed

[v0.6.0] Breaks option pass through (schema) #93

LarsOL opened this issue Oct 4, 2017 · 1 comment

Comments

@LarsOL
Copy link

LarsOL commented Oct 4, 2017

Do you want to request a feature or report a bug?

Bug

What is the current behavior?
The validation stops the 'name' option from being a valid entry.

{
   test: /\.(png|jpg|gif|svg)$/,
   use: [
            {
                loader: 'url-loader',
                options: {
                      name: 'img/[hash].[ext]',
                      limit: 10000
                 }
             }
   ]
}

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

The 'name' should be passed through into 'file-loader' if the fallback loader is triggered, like the previous version.

Or provide a 'official' way of passing options to the fallback loader

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as your webpack version, Node.js version and Operating System.

Mac/ Linux. Node 7.9

@michael-ciniawsky
Copy link
Member

Ooops... 😛 my bad, PR is here

@michael-ciniawsky michael-ciniawsky changed the title 0.6 Breaks option pass through [v0.6.0] Breaks option pass through (schema) Oct 4, 2017
@michael-ciniawsky michael-ciniawsky modified the milestones: 0.7.0, 0.6.1 Oct 4, 2017
@michael-ciniawsky michael-ciniawsky removed this from the 0.6.2 milestone Oct 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants