favicon builds now

This commit is contained in:
lawl 2020-03-30 12:19:54 +02:00
parent e2aef6b052
commit 4277844fac
2 changed files with 30 additions and 16 deletions

View file

@ -30,7 +30,7 @@
"dompurify": "^0.8.9", "dompurify": "^0.8.9",
"drop-stream": "^1.0.0", "drop-stream": "^1.0.0",
"duplex-maker": "^1.0.0", "duplex-maker": "^1.0.0",
"extract-loader": "^3.1.0", "extract-loader": "^5.0.1",
"file-loader": "^4.3.0", "file-loader": "^4.3.0",
"getusermedia": "^2.0.0", "getusermedia": "^2.0.0",
"html-loader": "^0.5.5", "html-loader": "^0.5.5",
@ -40,8 +40,8 @@
"lodash.assign": "^4.2.0", "lodash.assign": "^4.2.0",
"microphone-stream": "^3.0.5", "microphone-stream": "^3.0.5",
"node-sass": "^4.9.3", "node-sass": "^4.9.3",
"raw-loader": "^0.5.1", "raw-loader": "^4.0.0",
"regexp-replace-loader": "0.0.1", "regexp-replace-loader": "1.0.1",
"sass-loader": "^4.1.1", "sass-loader": "^4.1.1",
"stream-chunker": "^1.2.8", "stream-chunker": "^1.2.8",
"subworkers": "^1.0.1", "subworkers": "^1.0.1",

View file

@ -1,3 +1,4 @@
var theme = '../themes/MetroMumbleLight'
var path = require('path'); var path = require('path');
module.exports = { module.exports = {
@ -29,12 +30,21 @@ module.exports = {
{ {
test: /\.html$/, test: /\.html$/,
use: [ use: [
'file-loader?name=[name].[ext]', {
'extract-loader', loader: 'file-loader',
'html-loader?' + JSON.stringify({ options: { 'name': '[name].[ext]' }
},
{
loader: "extract-loader"
},
{
loader: 'html-loader',
options: {
attrs: ['img:src', 'link:href'], attrs: ['img:src', 'link:href'],
interpolate: 'require' //interpolate: 'require',
}) root: theme
}
}
] ]
}, },
{ {
@ -46,17 +56,21 @@ module.exports = {
] ]
}, },
{ {
type: 'javascript/auto',
test: /manifest\.json$|\.xml$/, test: /manifest\.json$|\.xml$/,
use: [ use: [
'file-loader', 'file-loader',
'extract-loader', 'extract-loader',
'regexp-replace-loader?' + JSON.stringify({ {
loader: 'regexp-replace-loader',
options: {
match: { match: {
pattern: "#require\\('([^']*)'\\)", pattern: "#require\\('([^']*)'\\)",
flags: 'g' flags: 'g'
}, },
replaceWith: '"+require("$1")+"' replaceWith: '"+require("$1")+"'
}), }
},
'raw-loader' 'raw-loader'
] ]
}, },