@@ -21,23 +21,23 @@ module.exports={
},
module:{
rules:[
- {
- test: /\.html \)/,
- use: [
- loader: 'html-loader',
- options: { // [!code focus]
- // 配置 HTML 中资源引用的处理规则
- sources: { // [!code focus]
- list: [ // [!code focus]
- { tag: 'img', attribute: 'src', type: 'src' }, // 处理 <img src>
- { tag: 'a', attribute: 'href', type: 'src' } // 处理 <a href> // [!code focus]
- ] // [!code focus]
- } // [!code focus]
- }
- ]
- },
+ // {
+ // test: /\.html \)/,
+ // use: [
+ // loader: 'html-loader',
+ // options: { // [!code focus]
+ // // 配置 HTML 中资源引用的处理规则
+ // sources: { // [!code focus]
+ // list: [ // [!code focus]
+ // { tag: 'img', attribute: 'src', type: 'src' }, // 处理 <img src>
+ // { tag: 'a', attribute: 'href', type: 'src' } // 处理 <a href> // [!code focus]
+ // ] // [!code focus]
+ // } // [!code focus]
+ // }
+ // ]
+ // },
{
test:/\.css$/i,
// use:["style-loader","css-loader"],