question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jekozyracommented, Jan 23, 2019

@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.

0reactions
rayronvictorcommented, Aug 20, 2020

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Images
Google Images. The most comprehensive image search on the web.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found