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.

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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JeffreyWaycommented, Jun 6, 2017

Fixed in the 1.0 release.

0reactions
bbashycommented, Jun 11, 2017

@ruchern laravel-mix@0.12.1 but I’ve been having the issue for a few releases.

Read more comments on GitHub >

github_iconTop 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 >

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