webpack-encore icon indicating copy to clipboard operation
webpack-encore copied to clipboard

chunk files stored in wrong folder with wrong filename

Open Seb33300 opened this issue 5 years ago • 1 comments

When a file is too big, it is split in multiple files when the .splitEntryChunks() is enabled. I am expecting the chunk files to be created in the same folder and using the same name as my original file, but they are stored in the root folder using a number as name.

For example, I have this configuration:

.addStyleEntry('css/vendors', './assets/css/vendors.scss')

The result is:

/build/css/vendors.460ab66d.css
/build/1.2d64c0ee.css <= saved in the root folder, not using the same name

While I was expecting something like:

/build/css/vendors.460ab66d.css
/build/css/vendors.1.2d64c0ee.css <= use the same folder and the same filename

Another question related to splitEntryChunks, is it possible to disable splitEntryChunks for 1 specific file?

Thank you

Seb33300 avatar Sep 05 '20 08:09 Seb33300

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Jan 17 '25 12:01 carsonbot

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Jul 18 '25 12:07 carsonbot

Friendly ping? Should this still be open? I will close if I don't hear anything.

carsonbot avatar Aug 01 '25 12:08 carsonbot

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

carsonbot avatar Aug 15 '25 12:08 carsonbot