-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Disable base64 representation #633
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
Comments
I am sure that we can use image URL directly. or maybe I misunderstand what you want, so could you provide a reproduction link or usage? that will be more direct. |
I have used the image URL directly, but it converted into base64 representation. Here's the repo link. |
If you don't want it to be converted, you should move the Then, change: <img src="./assets/img/stylechip-icon.png" alt="Stylechip logo icon"> to: <img src="/assets/img/stylechip-icon.png" alt="Stylechip logo icon"> See: |
Okay, but apart from that if you can custom webpack configuration that would also be great. |
Okay, you need to remove the default rule first: chainWebpack: config => {
config.module.rules.delete('images')
config.module
.rule('images')
.test(/\.(png|jpe?g|gif)(\?.*)?$/)
.use('url-loader')
.loader('url-loader')
.options({
// You options here, default options:
// limit: 10000,
// name: `assets/img/[name].[hash:8].[ext]`
})
} See: |
Feature request
What problem does this feature solve?
We can use a direct image URL instead of base64 representation.
How should this be implemented in your opinion?
By writing custom webpack configuration
Are you willing to work on this yourself?**
I will try.
Links
The text was updated successfully, but these errors were encountered: