gulp-selectors icon indicating copy to clipboard operation
gulp-selectors copied to clipboard

Option to change classnames across files in project

Open XXXVII opened this issue 9 years ago • 1 comments

This feature might be very useful in creating widgets with unique classnames. For example, use case is to add prefixes to classnames across the project.

XXXVII avatar Apr 21 '15 07:04 XXXVII

Cool idea, this could be added to the library module pretty easily, the issue is in exposing that to the run call.

Currently, the ignores object is the only way to manipulate the libraries. Since we want to expose more of the libraries functionality ignores should be nested into a bigger library configuration object which could take a prefix property too.

To avoid breaking the current API I'll work on adding a parameter for run which takes more library options, but if you have any suggestions on how to structure the run API for the next major version let me know.

cazzer avatar Apr 21 '15 21:04 cazzer