Browse Source

Add .html to webpack.hot resolve extensions

David Kaltschmidt 7 năm trước cách đây
mục cha
commit
56fc82151b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/webpack/webpack.hot.js

+ 1 - 1
scripts/webpack/webpack.hot.js

@@ -23,7 +23,7 @@ module.exports = merge(common, {
   },
 
   resolve: {
-    extensions: ['.scss', '.ts', '.tsx', '.es6', '.js', '.json', '.svg', '.woff2', '.png'],
+    extensions: ['.scss', '.ts', '.tsx', '.es6', '.js', '.json', '.svg', '.woff2', '.png', '.html'],
   },
 
   devtool: 'eval-source-map',