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.

about url-loader limit config #175

@Titans1001

Description

@Titans1001

The value of limit in the configuration cannot be set to 0 or anything that appears to be false will go as default,so when we don't need base64 encoding, we usually set the limit value to 0 and it won't work,We can only set the limit to a number if it is true。Can you change the source code so that 0 is also a value that can be set to work。

Code

code:
{
test: /.(png|jpe?g|gif|svg)(?.*)?$/,
loader: 'url-loader',
options: {
limit: 1,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
}

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