hotwired / stimulus

A modest JavaScript framework for the HTML you already have
https://stimulus.hotwired.dev/
MIT License
12.62k stars 418 forks source link

Allow webpack-helpers to have changeable postfix #244

Closed KieranP closed 5 years ago

KieranP commented 5 years ago

Currently, all files require "_controller" in the filename (https://github.com/stimulusjs/stimulus/blob/master/packages/%40stimulus/webpack-helpers/src/index.ts#L29). However, I'm looking to have a different folder for "components". e.g.

components/
  invoices_list_component.js
controllers/
  invoices_controller.js

Any chance this would be possible?

javan commented 5 years ago

We don't plan to support that, but you're free to copy our webpack helpers into your application and modify them to your liking.