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

limit parameter is not working correctly #40

Closed
liximomo opened this issue Jun 30, 2016 · 3 comments
Closed

limit parameter is not working correctly #40

liximomo opened this issue Jun 30, 2016 · 3 comments
Assignees

Comments

@liximomo
Copy link

Webpack logged the img size of 13kb, and I have the config:

loader: `url?limit=10000&name=img/[name]_[hash].[ext]` 

It outputs data-url instead of emitting file.

@Avien
Copy link

Avien commented Aug 23, 2016

+1

@michael-ciniawsky
Copy link
Member

@liximomo Still got this regression, I need more info about your setup (webpack.config.js) with the relevant parts please. Does it e.g work without specifying the name option

@alexander-akait
Copy link
Member

@liximomo why your use options in loader, for this we should use options({ loader: 'url-loader', options: { limit: 9000 }}) or use in require (require('url-loader?limit=20000!shared/images/logo.png');)

/cc @michael-ciniawsky maybe it is old webpack behavior?

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

5 participants