-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implicit component file name customisation #135
Comments
Just looking at this now. The Regex option could be a good route to go. In this example though, what should happen if I had a regex and extracted |
+1 for Ember land
So in the above example, I would like to auto-define |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you provide a way to customise the way a component name is implied from the file name?
I'm having an Angular project in which I'd like to use your plugin. In Angular it's recommended to name the stylesheet for
SomeThing
componentsome-thing.component.scss
.This plugin then throws an error
Invalid component name from implicit conversion from filename (...)/src/app/shared/some-thing/some-thing.component.scss
. I assume the problem is that after removing the extension.scss
the plugin is left withsome-thing.component
which has dot in it, which it doesn't know how to handle.implicitComponentsSuffix: '.component'
implicitComponentsNameExtract: /^(.+)\.component$/
Is there a chance to provide an option to configure that?
The text was updated successfully, but these errors were encountered: