-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Generated directive won't work in prod #2294
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
Comments
Hey @Awk34, Did you want me to try to go through the process of just submitting these as pull requests for small changes like this or..? Just because I was about to open another small bug for the generated directive.spec which would be only a couple liner. But I'm not sure how much red tape is involved in trying to contribute to the project. I looked through the guidelines and it seemed pretty strict on making commits. Let me know. Thanks. |
@dhaazen go ahead. This would be a PR against generator-ng-component though. The main thing is try to conform to our commit message guidelines, like so:
We enforce this because it allows us to automatically extract a lot of data from these messages |
Thanks @Awk34 I looked into it and in the generator-ng-component directive has an if else checking for 'filters.webpack'
I can see the filters are added when an new project is created using the generator-angular-fullstack does anyone else use generator-ng-component that wouldn't be using webpack? because if it needs to have that use case then we would need to set the 'filters.webpack' variable in this project. Otherwise remove the if else and stick with the webpack version of the template. Let me know which way you'd like me to go with it. |
I'm not sure if anyone else uses that repo anymore. Anyhow, once the project is fully moved over to Angular 2, We'll have another subgenerator specific to Angular 2 components/etc. If you look here, you'll see that we're adding the |
Hey, Figured it out. It didn't account for filters being an array it expected it to be an object. Changed it the:
to
And now it works fine. I submitted a pull request to the other project. Cheers, |
When generating a directive and including html the generated code uses:
which when bundled breaks because the path doesn't exist.
This can be resolved by simply changing the line to
The text was updated successfully, but these errors were encountered: