-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting stale hashed files #6
Comments
I have the same problem? Is there a desicion? |
For those looking for a solution: I just installed rimraf('public/**/app.*.*', () => {});
rimraf('public/**/vendor.*.js', () => {});
rimraf('public/**/manifest.*.js', () => {}); *edit: could also be simplified as rimraf('public/**/{app,vendor,manifest}.*.*', () => {}); |
@matejsvajger Thanks for sharing your solution, |
I use laravel-mix-clean to delete all files and relay on regeneration with a configuration like this: mix.clean({
cleanOnceBeforeBuildPatterns: [
'**/*',
'!robots.txt',
'!images/**',
'!favicon*.ico',
],
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Ben!
Thanks for creating this, I needed a replacement for laravel-mix-versionhash. Gonna check out your Agency set up soon.
I'm not able to delete the stale hashed files with force set to true in delOptions. Here's the output with debug turned on:
The built files from previous runs are still there. Not a biggie but I'd like to nuke them.
The invocation:
Here are the versions I'm using:
Please advise. Thanks!
The text was updated successfully, but these errors were encountered: