Browse Source

add some reposity

night-cherry 3 weeks ago
parent
commit
965a8fb0bc
1 changed files with 9 additions and 7 deletions
  1. 9 7
      webpack.config.js

+ 9 - 7
webpack.config.js

@@ -24,14 +24,16 @@ module.exports={
     rules:[
       {
         test: /\.html  \)/,
-        use: 'html-loader',
-        options: {
-          sources: {
-            list: [
-              { tag: 'img', attribute: 'src', type: 'src' }
-            ]
+        use: [{
+          loader:'html-loader',
+          options: {
+            sources: {
+              list: [
+                { tag: 'img', attribute: 'src', type: 'src' }
+              ]
+            }
           }
-        }
+        }]
       },
       {
         test:/\.css$/i,