diff --git a/neutrino-custom/base.js b/neutrino-custom/base.js index aeb97ca90..1821bd6fa 100644 --- a/neutrino-custom/base.js +++ b/neutrino-custom/base.js @@ -104,7 +104,11 @@ module.exports = neutrino => { neutrino.config .module .rule('html') - .loader('html', require.resolve('html-loader')); + .loader('html', require.resolve('html-loader'), { + // Override html-loader's default of `img:src`, + // so it also parses favicon images (``). + attrs: ['img:src', 'link:href'] + }); // Backport Neutrino 8's `test` regex, since Neutrino 4 omitted `.gif`: // https://github.com/mozilla-neutrino/neutrino-dev/blob/v4.2.0/packages/neutrino-preset-web/src/index.js#L108