UNPKG

@sanpjs/bundler-webpack

Version:

@sanpjs/bundler-webpack

30 lines 988 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = ({ config, resolver }) => { return { loader: resolver.resolve('html-loader'), options: { esModule: config.build.esModule, minimize: config.build.optimization.htmlMinify, sources: { list: [ { tag: 'img', attribute: 'data-src', type: 'src' }, { tag: 'link', attribute: 'href', type: 'src', // html中的favicon icon filter: (tag, attribute, attributes, resourcePath) => { return /^icon$/i.test(attributes.rel); } } ] } } }; }; //# sourceMappingURL=html.js.map