Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

birdietorerik's avatar

Delete chunk files laravel

Hi!

Can i delete all chunk files in laravel.?

0 likes
5 replies
birdietorerik's avatar

@Sinnbeck

                           /adminapp/css/app.css   519 KiB  /adminapp/js/app  [emitted]              /adminapp/js/app
                              /adminapp/js/app.js  13.9 MiB  /adminapp/js/app  [emitted]              /adminapp/js/app
  adminapp/js/chunks/0.js?id=fbce61d016acd7e03a4d  90.3 KiB                 0  [emitted] [immutable]  
  adminapp/js/chunks/1.js?id=81a5bbcad74bce2b613c  1.66 MiB                 1  [emitted] [immutable]  
 adminapp/js/chunks/10.js?id=2081a00e12c72b6eb4bc  86.3 KiB                10  [emitted] [immutable]  
adminapp/js/chunks/100.js?id=9afbbe6067aea58b0c7e  41.3 KiB               100  [emitted] [immutable]  
adminapp/js/chunks/101.js?id=0b924e73670e9557d876  88.8 KiB               101  [emitted] [immutable]  
adminapp/js/chunks/102.js?id=e8e2067d650218381fc7  87.5 KiB               102  [emitted] [immutable]  
adminapp/js/chunks/103.js?id=4ac6689cbd945b2af30c  1.18 MiB               103  [emitted] [immutable]  
adminapp/js/chunks/104.js?id=79b70c14ddacf69e40e8  8.28 KiB               104  [emitted] [immutable]  
adminapp/js/chunks/105.js?id=82c6bd4551653d73a146   115 KiB               105  [emitted] [immutable]  
adminapp/js/chunks/106.js?id=17962c8dc428a8494c9a  70.6 KiB               106  [emitted] [immutable]  
adminapp/js/chunks/107.js?id=d0cd5d3cec519516cc54  69.1 KiB               107  [emitted] [immutable]  

Strange now is cant find any chunk files ?

Sinnbeck's avatar

@birdietorerik Any reason you want to delete them? They seem to be part of your js build pipeline. I assume you are using webpack or similar to build it

1 like
RemiM's avatar
RemiM
Best Answer
Level 16

@birdietorerik Instead of manually removing files from the build folder, you might want to adjust your build process. Whether you're using Webpack or a similar tool, there's likely a way to prevent unwanted files from being generated in the first place.

tykus's avatar

What chunk files?

If you mean compiled JS files, then yes. They are the result of a bulld process and not the source files.

Please or to participate in this conversation.