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

How to output a image file in css background-image to another folder? #16

Closed
hkongm opened this issue Aug 19, 2015 · 2 comments
Closed

Comments

@hkongm
Copy link

hkongm commented Aug 19, 2015

The question likes webpack-contrib/file-loader#32

It's seems no way to resolve this...

Thanks.

@ghost
Copy link

ghost commented Aug 20, 2015

it is not a bug, you can add a query parameter name=xxx like this

    {
                test: /\.(png|jpg)$/,
                loader: 'url-loader?limit=100000&name=./imgs/[hash].[ext]'
    }

see loader-utils source code

@hkongm
Copy link
Author

hkongm commented Aug 26, 2015

thanks very much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant