Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
8df36d2b
Unverified
Commit
8df36d2b
authored
Feb 25, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: vue-svg-loader set inline
parent
73bcc2cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
Logo.vue
src/components/tools/Logo.vue
+1
-1
vue.config.js
vue.config.js
+11
-1
No files found.
src/components/tools/Logo.vue
View file @
8df36d2b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
LogoSvg
from
'@/assets/logo.svg'
import
LogoSvg
from
'@/assets/logo.svg
?inline
'
console
.
log
(
LogoSvg
)
console
.
log
(
LogoSvg
)
...
...
vue.config.js
View file @
8df36d2b
...
@@ -40,8 +40,18 @@ module.exports = {
...
@@ -40,8 +40,18 @@ module.exports = {
const
svgRule
=
config
.
module
.
rule
(
'svg'
)
const
svgRule
=
config
.
module
.
rule
(
'svg'
)
svgRule
.
uses
.
clear
()
svgRule
.
uses
.
clear
()
svgRule
.
use
(
'vue-svg-loader'
)
svgRule
.
oneOf
(
'inline'
)
.
resourceQuery
(
/inline/
)
.
use
(
'vue-svg-loader'
)
.
loader
(
'vue-svg-loader'
)
.
loader
(
'vue-svg-loader'
)
.
end
()
.
end
()
.
oneOf
(
'external'
)
.
use
(
'file-loader'
)
.
loader
(
'file-loader'
)
.
options
({
name
:
'assets/[name].[hash:8].[ext]'
})
},
},
css
:
{
css
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment