-
-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images are not anymore converted to data URI #1337
Comments
Because we use https://webpack.js.org/guides/asset-modules/#url-assets
But I don't recommend it. |
This should be included in a “Migration to v6” guide. |
I updated info about |
I confirm, that changing module: {
rules: [{
test: /\.png$/,
use: 'url-loader'
}]
} to module: {
rules: [{
test: /\.png$/,
type: 'asset'
}]
} did help. Using |
Added notes about |
I use webpack 5.44. My webpack.config.js contains (not complete content):
With css-loader 5.2.7 the images in the input stylus were embedded as data-URL in the output CSS. With css-loader 6, the images are instead moved to the output directory. Let me add, that the input src/ndex.js is itself ES6 module:
What do I have to change, in order to have the images further converted to data-urls in the resulting css?
The text was updated successfully, but these errors were encountered: