Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 5, 2019
1 parent e9dcc1a commit 89ecf05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions buildtools/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ const svgRule = {
name: '[name].[ext]'
},
}
}, {
resourceQuery: /inline/,
use: [
{
loader: 'svg-inline-loader',
options: {
removeSVGTagAttrs: false,
},
},
'svgo-loader',
]
}, {
use: [
{
Expand Down
11 changes: 11 additions & 0 deletions buildtools/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ const svgRule = {
name: '[name].[hash:6].[ext]'
},
}
}, {
resourceQuery: /inline/,
use: [
{
loader: 'svg-inline-loader',
options: {
removeSVGTagAttrs: false,
},
},
'svgo-loader',
]
}, {
use: [
{
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ module.value('gmfPermalinkOptions', /** @type {import('gmf/permalink/Permalink.j
crosshairStyle: [
new Style({
image: new Icon({
src: 'data:image/svg+xml;utf8,' + require('./image/crosshair.svg'),
src: 'data:image/svg+xml;utf8,' + require('./image/crosshair.svg?inline'),
opacity: 1,
size: [22, 22],
imgSize: [22, 22],
Expand Down

0 comments on commit 89ecf05

Please sign in to comment.