Skip to content

Commit

Permalink
Added support for JPEG2000.
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoxocephalus committed Feb 20, 2020
1 parent a7a6e32 commit 06548a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ declare module "*.webp" {
export = value;
}

declare module "*.jp2" {
const value: string;
export = value;
}

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = (nextConfig = {}) => {
}

config.module.rules.push({
test: /\.(jpe?g|png|svg|gif|ico|webp)$/,
test: /\.(jpe?g|png|svg|gif|ico|webp|jp2)$/,
exclude: nextConfig.exclude,
use: [
{
Expand Down

0 comments on commit 06548a7

Please sign in to comment.