Closed sivaprasad-kiranum closed 5 years ago
It looks like there is a bug with webpack not bundling .gif files. Try renaming your gif file as .png and navigate from the root using '~'
I don't think that's a "bug", that to me indicates the webpack config isn't configured correctly. Granted, this should be documented on the README for the plugin 😄 You'll need to find this part of your webpack.config.js
file and add the .gif
glob.
// Copy assets to out dir. Add your own globs as needed.
new CopyWebpackPlugin(
[
{ from: { glob: 'assets/**' } },
{ from: { glob: 'fonts/**' } },
{ from: { glob: '**/*.gif' } },
{ from: { glob: '**/*.jpg' } },
{ from: { glob: '**/*.png' } }
],
The animated gif is not loading then the src parameter is given as res://