Skip to content

Commit 4978b2a

Browse files
committed
Fix icons on safari when using cookie authentication
Cookie's are not sent with url's in -webkit-mask so we embed the svg's directly in the css.
1 parent 7481395 commit 4978b2a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"typescript": "^3.2.2",
4343
"typescript-tslint-plugin": "^0.2.1",
4444
"uglifyjs-webpack-plugin": "^2.1.1",
45+
"url-loader": "^1.1.2",
4546
"util": "^0.11.1",
4647
"webpack": "^4.28.4",
4748
"webpack-bundle-analyzer": "^3.0.3",

scripts/webpack.client.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ module.exports = (options = {}) => merge(
3030
loader: "sass-loader",
3131
}],
3232
}, {
33-
test: /\.(svg|png|ttf|woff|eot|woff2)$/,
33+
test: /\.(png|ttf|woff|eot|woff2)$/,
3434
use: [{
3535
loader: "file-loader",
3636
options: {
3737
name: "[path][name].[ext]",
3838
},
3939
}],
40+
}, {
41+
test: /\.svg$/,
42+
loader: 'url-loader'
4043
}],
4144
},
4245
plugins: [

yarn.lock

+10-1
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,7 @@ [email protected]:
31213121
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
31223122
integrity sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==
31233123

3124-
mime@^2.3.1:
3124+
mime@^2.0.3, mime@^2.3.1:
31253125
version "2.4.0"
31263126
resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.0.tgz#e051fd881358585f3279df333fe694da0bcffdd6"
31273127
integrity sha512-ikBcWwyqXQSHKtciCcctu9YfPbFYZ4+gbHEmE0Q8jzcTYQg5dHCr3g2wwAZjPoJfQVXZq6KXAjpXOTf5/cjT7w==
@@ -5236,6 +5236,15 @@ urix@^0.1.0:
52365236
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
52375237
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=
52385238

5239+
url-loader@^1.1.2:
5240+
version "1.1.2"
5241+
resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-1.1.2.tgz#b971d191b83af693c5e3fea4064be9e1f2d7f8d8"
5242+
integrity sha512-dXHkKmw8FhPqu8asTc1puBfe3TehOCo2+RmOOev5suNCIYBcT626kxiWg1NBVkwc4rO8BGa7gP70W7VXuqHrjg==
5243+
dependencies:
5244+
loader-utils "^1.1.0"
5245+
mime "^2.0.3"
5246+
schema-utils "^1.0.0"
5247+
52395248
url-parse@^1.4.3:
52405249
version "1.4.4"
52415250
resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.4.tgz#cac1556e95faa0303691fec5cf9d5a1bc34648f8"

0 commit comments

Comments
 (0)