mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Merge pull request #9869 from vector-im/jryans/twemoji-windows
Fix Twemoji loading on Windows dev machines
This commit is contained in:
commit
53d8341886
1 changed files with 6 additions and 2 deletions
|
@ -76,7 +76,7 @@ module.exports = {
|
||||||
// lifetime for assets while still delivering changes quickly.
|
// lifetime for assets while still delivering changes quickly.
|
||||||
oneOf: [
|
oneOf: [
|
||||||
{
|
{
|
||||||
// Images referenced in CSS files
|
// Assets referenced in CSS files
|
||||||
issuer: /\.(scss|css)$/,
|
issuer: /\.(scss|css)$/,
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
options: {
|
options: {
|
||||||
|
@ -92,11 +92,15 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Images referenced in HTML and JS files
|
// Assets referenced in HTML and JS files
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
options: {
|
options: {
|
||||||
name: '[name].[hash:7].[ext]',
|
name: '[name].[hash:7].[ext]',
|
||||||
outputPath: getImgOutputPath,
|
outputPath: getImgOutputPath,
|
||||||
|
publicPath: function(url, resourcePath) {
|
||||||
|
const outputPath = getImgOutputPath(url, resourcePath);
|
||||||
|
return toPublicPath(outputPath);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue