fix: raw-loader / <Icon svg="./*">, updated mocked types for importing resources via webpack

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2022-01-27 14:05:10 +02:00
1 parent f7a53e6c6b
commit cae184883b
6 files changed
+27 -12

No files matched your search

+13 -3
View File
@@ -25,7 +25,17 @@ declare module "*.scss" {
const content: string;
export = content;
}
declare module "*.ttf" {
const content: string;
export = content;
// Declare everything what's bundled as webpack's type="asset/resource"
declare module "*.svg?raw" {
export = "";
}
declare module "*.svg" {
export = "";
}
declare module "*.jpg";
declare module "*.png";
declare module "*.eot";
declare module "*.woff";
declare module "*.woff2";
declare module "*.ttf";