rollup/rollup-plugin-url

Can't copy file to destination folder

sheltondong opened this issue · 1 comments

I am using this config:

url({
    limit: 1024 * 100,
    include: ['.png', '.jpg'],
})

And I have this css file:

.test {
    background-image: url('javascript_logo.png');
}

But it doesn't copy the image file to the destination folder.

This plugin responsible for files, imported in js, not css. In your case you can use postcss with postcss-url plugin