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

about url-loader limit config #175

Closed
Titans1001 opened this issue Feb 27, 2019 · 2 comments
Closed

about url-loader limit config #175

Titans1001 opened this issue Feb 27, 2019 · 2 comments

Comments

@Titans1001
Copy link

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]')
}
}

@alexander-akait
Copy link
Member

Please use issue template in future, yes we can do it, feel free to send a PR

@alexander-akait
Copy link
Member

Fixed #180

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