1 | module.exports = (options = {}) => (neutrino) => {
|
2 | neutrino.config.module
|
3 | .rule('html')
|
4 | .test(neutrino.regexFromExtensions(['html']))
|
5 | .use('html')
|
6 | .loader(require.resolve('html-loader'))
|
7 | .options({
|
8 | // Override html-loader's default attrs of `['img:src']`
|
9 | // so it also parses favicon images (`<link href="...">`).
|
10 | // TODO: Remove once html-loader 1.0.0 is released:
|
11 | // https://github.com/webpack-contrib/html-loader/issues/17
|
12 | attrs: ['img:src', 'link:href'],
|
13 | ...options,
|
14 | });
|
15 | };
|