Skip to content

Commit

Permalink
added jpg type
Browse files Browse the repository at this point in the history
  • Loading branch information
lizaklimova committed Jan 26, 2024
1 parent ab719fb commit 323fb21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
5 changes: 5 additions & 0 deletions @types/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ declare module '*.png' {
const content: any;
export default content;
}

declare module '*.jpg' {
const content: any;
export default content;
}
4 changes: 0 additions & 4 deletions declarations.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"jsx": "react-jsx",
"baseUrl": "./src"
},
"include": ["src", "@types", "declarations.d.ts"]
"include": ["src", "@types"]
}
7 changes: 0 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ module.exports = {
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.(jpg|jpeg)$/i,
type: 'asset/resource',
generator: {
filename: 'images/[name][ext]',
},
},
],
},
};

0 comments on commit 323fb21

Please sign in to comment.