mediacurrent / theme_generator_8

Yeoman generator for Drupal Themes - lets you quickly set up a Drupal 8 theme with sensible defaults and best practices.
MIT License
100 stars 25 forks source link

Issue when creating components probably due to lodash #116

Open mariohernandez opened 2 years ago

mariohernandez commented 2 years ago

The theme generator seems to have a bug related to lodash. If a component is created using npm run generate and the theme name contains multiple words as a single string, lodash creates a new themename.libraries.yml file using the theme name but separating the theme name by an underscore. For example, when I used the theme name drupal9_theme when prompted for my theme name when creating a new component, the generator created a new *.libraries.yml file called drupal_9_theme.libraries.yml.

Solution