Skip to content

Commit

Permalink
fix asset module bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mizok committed Apr 16, 2022
1 parent 0b5bf83 commit 94e7f1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const config = (env: any, argv: any): webpack.Configuration => {
]
},
{
test: /\.(jpe?g|png|gif)$/,
test: /\.(jpe?g|png|gif|svg)$/,
type: 'asset/resource',
generator: {
filename: 'assets/images/[name][ext]'
Expand Down Expand Up @@ -186,8 +186,8 @@ const config = (env: any, argv: any): webpack.Configuration => {
]
},
{
test: /\.(woff(2)?|eot|ttf|otf|svg)$/,
type: 'asset/inline',
test: /\.(woff(2)?|eot|ttf|otf)$/,
type: 'asset/resource',
generator: {
filename: 'assets/fonts/[name][ext]'
}
Expand Down

0 comments on commit 94e7f1c

Please sign in to comment.