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

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

Closed
@LarsOL

Description

@LarsOL

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions