Mix is not cleaning old versioned files
See original GitHub issue- Laravel Mix Version: 0.12.1
- Node Version: v6.10.3
- NPM Version: 5.0.2
- OS: Lubuntu 16.04
Description:
I currently have two projects using Laravel Mix. One is using version 0.10.0, and all works well.
Now, most recent project is using version 0.12.1, and unlike before, now the previous compiled versions of the assets are not deleted anymore, thus a pile of “uncollected garbage files” grows fast.
This includes all: the generated manifest, the CSS files, and the JS files.
Steps To Reproduce:
I believe it is just a matter of using mix.version
and check that it is not deleting the old versioned files, when a new one is created.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Mix does not delete old versioned files when a new one is ...
Yes, i can reproduce the issue, mix does not delete files if output folder is other than default (public/js). There are two possible...
Read more >Laravel mix versioning doesn't remove old built files
In a new project I started, I do not have this issue. Mix correctly replaces the old file with the latest built version....
Read more >Laravel mix versioning doesn't remove old built files
I am using Laravel 5.4 with mix to version my javascript and scss files. The problem is: it doesn't clean the previous built...
Read more >mix dialyzer — Dialyxir v1.2.0 - HexDocs
To get the old behavior, specify them in your Mix project file. For compatibility reasons you can use either the -Wwarning convention of...
Read more >Versioning | Laravel Mix Documentation
With Mix versioning enabled, a unique querystring id will be appended to your assets every time your code is compiled. Consider the following...
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 FreeTop 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
Top GitHub Comments
Fixed in the 1.0 release.
@ruchern
laravel-mix@0.12.1
but I’ve been having the issue for a few releases.