You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
How can i delete processed files automatically (maybe using the 'clean' grunt plugin?) after usemin task?
For example,theme-1.css and theme-2.css are merged into theme.min.css by usemin, how to remove them automatically without specify their paths by hand? Could a specific plugin be added to the four supported in order to achiave this task?
Thank you in advance
The text was updated successfully, but these errors were encountered:
The use case of such a feature seems rather rare, and if you structure your files cleanly it's really easy to do this using clean. Maintenance of this task is hard enough so I'm personally 👎 for adopting any new features that can easily be achieved using other tasks
No the best you are going to get is to add all the processed files paths to an array in the usemin task. This needs to be done in a unique way, that is either absolute file system paths, or a relative path from the Gruntfile.js location directory. This way they are unique and unambigious, so they are not based around the implicit workingDir or destDir.
What a developer wants to do with this list is upto him.
But having usemin configure another plugin is a sign of bad design (but that is just how it works due to grunts/JS limitation) and configuring the grunt-clean plugin is only going to ask for trouble in the future that the usemin project will be blamed for.
But getting a file list of all processed files in an array, now that is a clean feature that can be used for many purposes. If the developer wants to hang himself using it, that would be his concern.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can i delete processed files automatically (maybe using the 'clean' grunt plugin?) after usemin task?
For example,
theme-1.css
andtheme-2.css
are merged intotheme.min.css
by usemin, how to remove them automatically without specify their paths by hand? Could a specific plugin be added to the four supported in order to achiave this task?Thank you in advance
The text was updated successfully, but these errors were encountered: