Skip to content
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

Delete old versioned files #1

Open
m-lotze opened this issue Jul 25, 2018 · 1 comment
Open

Delete old versioned files #1

m-lotze opened this issue Jul 25, 2018 · 1 comment

Comments

@m-lotze
Copy link

m-lotze commented Jul 25, 2018

Hi there,

it would be nice if this package could take care of deleting old versioned files. Right now you have to do it manually.

Thanks

@oommgg
Copy link

oommgg commented Sep 12, 2018

you can use clean-webpack-plugin to clean old version files,

let mix = require('laravel-mix')
const CleanWebpackPlugin = require('clean-webpack-plugin')

if (mix.inProduction()) {
    mix.version().webpackConfig({
        plugins: [
            new CleanWebpackPlugin(['public/css', 'public/js', 'public/fonts'], { verbose: false })
        ]
    })
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants