Skip to content

Commit

Permalink
feat: enhance way of svg usage
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstick committed May 6, 2020
1 parent dd0a4ab commit ab2c013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions generators/app/templates/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ declare module '*.png'
declare module '*.jpg'
declare module '*.svg' {
export function ReactComponent(props: React.SVGProps<SVGSVGElement>): React.ReactElement
const url: string
export default url
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-umi",
"version": "4.2.3",
"version": "4.2.4",
"description": "umi project generator",
"scripts": {
"docs:dev": "vuepress dev docs",
Expand Down

0 comments on commit ab2c013

Please sign in to comment.