Skip to content

Commit 53d8341

Browse files
authored
Merge pull request element-hq#9869 from vector-im/jryans/twemoji-windows
Fix Twemoji loading on Windows dev machines
2 parents 982416b + 95d36c1 commit 53d8341

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

webpack.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = {
7676
// lifetime for assets while still delivering changes quickly.
7777
oneOf: [
7878
{
79-
// Images referenced in CSS files
79+
// Assets referenced in CSS files
8080
issuer: /\.(scss|css)$/,
8181
loader: 'file-loader',
8282
options: {
@@ -92,11 +92,15 @@ module.exports = {
9292
},
9393
},
9494
{
95-
// Images referenced in HTML and JS files
95+
// Assets referenced in HTML and JS files
9696
loader: 'file-loader',
9797
options: {
9898
name: '[name].[hash:7].[ext]',
9999
outputPath: getImgOutputPath,
100+
publicPath: function(url, resourcePath) {
101+
const outputPath = getImgOutputPath(url, resourcePath);
102+
return toPublicPath(outputPath);
103+
},
100104
},
101105
},
102106
],

0 commit comments

Comments
 (0)