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 Multiple Old Files #20

Open
ghost opened this issue May 4, 2017 · 0 comments
Open

Delete Multiple Old Files #20

ghost opened this issue May 4, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented May 4, 2017

HI,

for debug reasons i generate a file with and without sourcemap through gulp. So that when i for whatever reason in production need to debug i can enable the sourcemaps by adding a certain URL param.

Now is there for me a way to lets say add an array of locations where to look for old files when i want to delete the old files?

This is my setup now

gulp-hash.manifest(buildConfig.manifest.path + buildConfig.manifest.name, {
    deleteOld: true,
    sourceDir: __dirname + '/build'
})

But i would like to be able to do something like this:

gulp-hash.manifest(buildConfig.manifest.path + buildConfig.manifest.name, {
    deleteOld: true,
    sourceDir: [__dirname + '/build', __dirname + '/build/debug']
})

This way the old files will be deleted out of 2 folders.

Anyway i can achieve this right now?

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

0 participants