-
Notifications
You must be signed in to change notification settings - Fork 680
Exclude files / folders from clean task #303
Comments
Not a bad idea. That's sort of what I created the Or nest your assets in public, so the root dest is something like 'public/assets', and the only the only thing that gets wiped out is that But I'm open to adding configuration as well. I feel like I started to add that at somepoint but hit some issues and never finished. |
I'm certainly in favor of this feature... or instead of deleting the actual config.root.dest folder, perhaps adding config options for the clean task so its possible to negate certain folders... I will try put something together shortly. |
yeah, especially when it wipes out |
@stevieg83 you can get around that by change your root |
good shout |
We definitely need to address this. There's a couple of routes we could go, and maybe it's a combination of them:
|
Yes please! I am working on switching over to Blendid from my homegrown build process, but I want to use a customized HTML task to copy my Craft templates to |
@elivz why do you need to hard-code the filenames? We included a Craft plugin to handle that automatically: https://github.com/vigetlabs/blendid/blob/master/extras/craft/ASSETS-README.md |
Good call, I think that's a probably a better approach. |
Well, I guess I don't need to. But it's always seemed cleaner to me to handle all the revisioning in the build process and not have the extra plugin dependency. I already modified the rev task to replace the asset urls in my Twig templates (PR coming...), now I just need to find a way to move those template files outside of the webroot without "cleaning" my entire CMS installation every time. |
I'm working on a large site with some extra folders in the root of the website (./public/) with client related stuff. When I build the site with gulp-starter the whole root folder gets cleaned (cleared). Is it possible to set an extra config param to exclude folders / files from the clean task?
The text was updated successfully, but these errors were encountered: