|
@@ -22,6 +22,23 @@ module.exports={
|
|
|
module:{
|
|
|
rules:[
|
|
|
{
|
|
|
+ test: /\.html \)/,
|
|
|
+ use: [
|
|
|
+ {
|
|
|
+ loader: 'html-loader',
|
|
|
+ options: {
|
|
|
+
|
|
|
+ sources: {
|
|
|
+ list: [
|
|
|
+ { tag: 'img', attribute: 'src', type: 'src' },
|
|
|
+ { tag: 'a', attribute: 'href', type: 'src' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
test:/\.css$/i,
|
|
|
use:["style-loader","css-loader"],
|
|
|
},
|