-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angulararea: @ngtools/webpackfeatureIssue that requests a new featureIssue that requests a new featuregood first issue
Milestone
Description
Hey friendly @angular/cli team!
Would there be any appetite to enable using a .svg
file as a component template?
As far as I can tell it would be a small change in webpack-config/common.js
from:
{ test: /\.html$/, loader: 'raw-loader' },
{ test: /\.(eot|svg|cur)$/, // ...
to
{ test: /\.(html|svg)$/, loader: 'raw-loader' },
{ test: /\.(eot|cur)$/, // ...
Are there any downsides to this? Are there any other places that the change would need to be handled? It seems to work when I change it in my node_modules.
Let me know if this is something that would be useful/wanted, and I'll make a PR.
Thanks!
michaelbazos, johnchristopherjones, thojo, kevin-andrews, poesterlin and 5 more
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulararea: @ngtools/webpackfeatureIssue that requests a new featureIssue that requests a new featuregood first issue