-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Allow templateUrl and styleUrls to exclude path #3838
Comments
Webpack's loader-utils helper methods urlToRequest and stringifyRequest should probably be used in _replaceResources inside the CLI's loader. |
Per conversation with @hansl, we should prepend |
That's essentially what the helper functions do. Plus support the webpack specific tilde which would most likely be expected if the loader is used independently of the CLI. |
@clydin coolio, I'll use them then. I wasn't too familiar with those helper so I appreciate the explanation. |
@filipesilva , Whether |
@CarreraPHP
That is the difference. |
@filipesilva , Thanks for the clarification. '/foo.html' is not the way |
@CarreraPHP I actually gave you some bad information there. In AoT, In the CLI we always inline styles and templates so we go by AoT rules. Edit: further correction. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As per our discussion with @wardbell @Brocco and @filipesilva , we'd like to make the CLI be comfortable when a
module.id
exists in the@Component( ... )
decorator such that the url properties can simply be the name of the file. Examples that should work:The text was updated successfully, but these errors were encountered: