If I add images in the img folder, webpack adds only few of them in the build folder when I run either npm start
or NODE_ENV=production npm run build
.
In the console I get:
[12:25:20] [write-file-webpack-plugin] stats.compilation.errors.length is "0".
[12:25:20] [write-file-webpack-plugin] asset: ./img.png; destination: ./build/img.png [written] (4 KB)
[12:25:20] [write-file-webpack-plugin] asset: ./icon-128.png; destination: ./build/icon-128.png [written] (10.04 KB)
[12:25:20] [write-file-webpack-plugin] asset: ./icon-34.png; destination: ./build/icon-34.png [written] (2.07 KB)
Other images have some extension png
. I do not understand the reason.
Any idea?
Thank you
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Images - Google
Send feedback. AllImages · Sign in. Videos. Double-tap to search Google. REPORT THIS. CANCEL. OK. DELETE. Settings · Search settings · Advanced search....
Read more >Unsplash: Beautiful Free Images & Pictures
Beautiful, free images and photos that you can download and use for any project. Better than any royalty free or stock photos.
Read more >Image - Wikipedia
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey ......
Read more >2.7 million+ Stunning Free Images to Use Anywhere - Pixabay ...
Find your perfect free image or video to download and use for anything. ✓ Free for commercial use ✓ No attribution required ✓...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pierroberto I played around with this a bit, and it seems that if the files are mentioned in imports (example), then they are automatically included.
You need to import them in
background.js