0

We have a project where there are some mock JSON files inside the src/test/mock directory, some of them are pretty large and can not be deleted or moved elsewhere. I recently started using webpack-bundle-analyzer plugin it shows that all the JSON files from that folder are being bundled in the production build and the size is almost 400kb. The JSON files are not imported anywhere in the source code and basically were used when we did not have any actual API. What setup/plugin should I use so that these JSON files don't get included in the prod build? Again they can not be deleted or moved.

adnan_aust
  • 45
  • 8

0 Answers0